Skip to content

Commit

Permalink
i2c-cpm: drop NO_IRQ
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Grant Likely <[email protected]>
Acked-by: Jochen Friedrich <[email protected]>
Cc: Ben Dooks <[email protected]>
  • Loading branch information
Wolfram Sang authored and Ben Dooks committed May 19, 2010
1 parent bf727e0 commit b865a4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-cpm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit b865a4e

Please sign in to comment.