]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
rtc: rtc-ds1374: fix 'no irq' case handling
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Wed, 20 Aug 2008 21:09:21 +0000 (14:09 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 20 Aug 2008 22:40:32 +0000 (15:40 -0700)
commitb42f931737bea8ca3982449d63ec46410d13e891
treee14f8a0b2ad65049aad10e79d1305ff33be74672
parent14bac5acfdb6a40be64acc042c6db73f1a68f6a4
rtc: rtc-ds1374: fix 'no irq' case handling

On a PowerPC board with ds1374 RTC I'm getting this error while RTC tries
to probe:

rtc-ds1374 0-0068: unable to request IRQ

This happens because I2C probing code (drivers/of/of_i2c.c) is specifying
IRQ0 for 'no irq' case, which is correct.

The driver handles this incorrectly, though. This patch fixes it.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Cc: David Brownell <david-b@pacbell.net>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Acked-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-ds1374.c