pata_of_platform: Don't use NO_IRQ
authorAnton Vorontsov <cbouatmailru@gmail.com>
Thu, 10 Nov 2011 16:28:59 +0000 (20:28 +0400)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 10 Nov 2011 20:57:59 +0000 (15:57 -0500)
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>
drivers/ata/pata_of_platform.c

index a72ab0dde4e52332104003fd63806d85f271c037..2a472c5bb7db7015d76118434a8d50e7795a07d1 100644 (file)
@@ -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;