1
0
Fork 0

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 <cbouatmailru@gmail.com>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
hifive-unleashed-5.1
Anton Vorontsov 2011-11-10 20:28:59 +04:00 committed by Jeff Garzik
parent c9703765f3
commit 2d5fcc986d
1 changed files with 1 additions and 1 deletions

View 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;