Skip to content

Commit

Permalink
pata_of_platform: Don't use NO_IRQ
Browse files Browse the repository at this point in the history
Drivers should not use NO_IRQ; moreover, some architectures don't
have it nowadays. '0' is the 'no irq' case.

Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
  • Loading branch information
Anton Vorontsov authored and Jeff Garzik committed Nov 10, 2011
1 parent c970376 commit 2d5fcc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ata/pata_of_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ static int __devinit pata_of_platform_probe(struct platform_device *ofdev)
}

ret = of_irq_to_resource(dn, 0, &irq_res);
if (ret == NO_IRQ)
if (!ret)
irq_res.start = irq_res.end = 0;
else
irq_res.flags = 0;
Expand Down

0 comments on commit 2d5fcc9

Please sign in to comment.