From: Wolfram Sang Date: Sun, 4 Oct 2009 11:08:16 +0000 (+0200) Subject: i2c-cpm: drop NO_IRQ X-Git-Tag: MMI-PSA29.97-13-9~23879^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b865a4e7ab3c6c8099fbe83ddf94c982d1d850ea;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git i2c-cpm: drop NO_IRQ Drop NO_IRQ as 0 is the preferred way to describe 'no irq' (http://lkml.org/lkml/2005/11/21/221). This change is safe, as the driver is only used on powerpc, where NO_IRQ is 0 anyhow. Signed-off-by: Wolfram Sang Acked-by: Grant Likely Acked-by: Jochen Friedrich Cc: Ben Dooks --- diff --git a/drivers/i2c/busses/i2c-cpm.c b/drivers/i2c/busses/i2c-cpm.c index 9c2e10082b79..16948db38973 100644 --- a/drivers/i2c/busses/i2c-cpm.c +++ b/drivers/i2c/busses/i2c-cpm.c @@ -441,7 +441,7 @@ static int __devinit cpm_i2c_setup(struct cpm_i2c *cpm) init_waitqueue_head(&cpm->i2c_wait); cpm->irq = of_irq_to_resource(ofdev->node, 0, NULL); - if (cpm->irq == NO_IRQ) + if (!cpm->irq) return -EINVAL; /* Install interrupt handler. */