Thread (1 message) 1 message, 1 author, 2008-08-19

Re: [PATCH 1/2] rtc: rtc-ds1374: fix 'no irq' case handling

From: Peter Korsgaard <jacmet@sunsite.dk>
Date: 2008-08-19 20:01:52
Also in: lkml

quoted
quoted
quoted
quoted
"Anton" == Anton Vorontsov [off-list ref] writes:
 Anton> On a PowerPC board with ds1374 RTC I'm getting this error while
 Anton> RTC tries to probe:

 Anton> rtc-ds1374 0-0068: unable to request IRQ

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

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

Great, I was just about to send a similar patch. Another advantage of
using 0 for 'no irq' is for I2C_BOARD_INFO(). With that you can simply
not assign anything to .irq instead of having to set it to -1.

Acked-by: Peter Korsgaard <jacmet@sunsite.dk>

-- 
Bye, Peter Korsgaard
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help