From: Anton Vorontsov Date: Thu, 10 Nov 2011 16:28:59 +0000 (+0400) Subject: pata_of_platform: Don't use NO_IRQ X-Git-Tag: v3.2-rc2~21^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2d5fcc986da944bca8257f358b155eec79fc4120;p=profile%2Fivi%2Fkernel-x86-ivi.git pata_of_platform: Don't use NO_IRQ 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 Acked-by: Alan Cox Signed-off-by: Jeff Garzik --- diff --git a/drivers/ata/pata_of_platform.c b/drivers/ata/pata_of_platform.c index a72ab0d..2a472c5 100644 --- a/drivers/ata/pata_of_platform.c +++ b/drivers/ata/pata_of_platform.c @@ -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;