[PATCH] of/i2c: don't pass -1 to irq_dispose_mapping, otherwise kernel will oops

Jochen Friedrich jochen at scram.de
Sat Jul 12 05:01:10 EST 2008


Hi Grant,

> What is the reason that info.irq is set to -1 in the first place?  This
> looks like another bug to me.  Does something in the i2c layer depend on
> the -1 value?

Nope, it was a bug in the i2c documentation fixed recently:

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=8e29da9ee8958cc17e27f4053420f1c982614793

Thanks,
Jochen



More information about the Linuxppc-dev mailing list