projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c970376
)
pata_of_platform: Don't use NO_IRQ
author
Anton Vorontsov
<cbouatmailru@gmail.com>
Thu, 10 Nov 2011 16:28:59 +0000
(20:28 +0400)
committer
Jeff 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
patch
|
blob
|
history
diff --git
a/drivers/ata/pata_of_platform.c
b/drivers/ata/pata_of_platform.c
index a72ab0dde4e52332104003fd63806d85f271c037..2a472c5bb7db7015d76118434a8d50e7795a07d1 100644
(file)
--- 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;