Use pci_valid_irq() instead of a custom NO_IRQ definition.
It probably didn't work on half a dozen architectures.
Signed-off-by: Matthew Wilcox <[email protected]>
---
drivers/pcmcia/pd6729.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
applies-to: 1081da18698662c172c682d7e8b882e38ee57eee
220fd6c4becfe49c606b7bcbb7df6262691459b4
diff --git a/drivers/pcmcia/pd6729.c b/drivers/pcmcia/pd6729.c
index 20642f0..72720f2 100644
--- a/drivers/pcmcia/pd6729.c
+++ b/drivers/pcmcia/pd6729.c
@@ -39,10 +39,6 @@ MODULE_AUTHOR("Jun Komuro <komurojun-mbn
*/
#define to_cycles(ns) ((ns)/120)
-#ifndef NO_IRQ
-#define NO_IRQ ((unsigned int)(0))
-#endif
-
/*
* PARAMETERS
* irq_mode=n
@@ -733,7 +729,7 @@ static int __devinit pd6729_pci_probe(st
goto err_out_disable;
}
- if (dev->irq == NO_IRQ)
+ if (!pci_valid_irq(dev->irq))
irq_mode = 0; /* fall back to ISA interrupt mode */
mask = pd6729_isa_scan();
---
0.99.8.GIT
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]