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
a72ab0d
..
2a472c5
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;