]> err.no Git - linux-2.6/commit
i2c-mpc: Compare to NO_IRQ instead of zero
authorJon Smirl <jonsmirl@gmail.com>
Sun, 11 May 2008 18:37:04 +0000 (20:37 +0200)
committerJean Delvare <khali@hyperion.delvare>
Sun, 11 May 2008 18:37:04 +0000 (20:37 +0200)
commitf5fff3602a67ff8c98fccdbf15959780be542802
tree16c93feec5711eb5139466156b680c2d68f50785
parent9662369786b9d07fd46d65b0f9e3938a3e01a5d9
i2c-mpc: Compare to NO_IRQ instead of zero

Alter the mpc i2c driver to use the NO_IRQ symbol instead of the constant
zero when checking for valid interrupts. NO_IRQ=-1 on ppc and NO_IRQ=0 on
powerpc so the checks against zero are not correct.

Signed-off-by: Jon Smirl <jonsmirl@gmail.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/busses/i2c-mpc.c