[PATCH] Fix wrong 'no interrupt' handling in of_i2c

Grant Likely grant.likely at secretlab.ca
Sun Jun 29 05:16:16 EST 2008


On Sat, Jun 28, 2008 at 12:31 PM, Wolfram Sang <w.sang at pengutronix.de> wrote:
> If an I2C device node does not specify an interrupt, the .irq member of the
> board_info struct was set to -1. This caused crashes on following
> irq_dispose_mappings. Leave it NO_IRQ as returned from irq_of_parse_and_map.
> (Suggesting -1 as 'i2c-no-irq' used to be a bug in linux/i2c.h.)
>
> Signed-off-by: Wolfram Sang <w.sang at pengutronix.de>

Acked-by: Grant Likely <grant.likely at secretlab.ca>

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.



More information about the Linuxppc-dev mailing list