提交 9130adda 编写于 作者: Y Yinghai Lu 提交者: Ingo Molnar

drivers/pcmcia: use nr_irqs

Signed-off-by: NYinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 a06148c3
...@@ -273,7 +273,7 @@ static int __init at91_cf_probe(struct platform_device *pdev) ...@@ -273,7 +273,7 @@ static int __init at91_cf_probe(struct platform_device *pdev)
goto fail0d; goto fail0d;
cf->socket.pci_irq = board->irq_pin; cf->socket.pci_irq = board->irq_pin;
} else } else
cf->socket.pci_irq = NR_IRQS + 1; cf->socket.pci_irq = nr_irqs + 1;
/* pcmcia layer only remaps "real" memory not iospace */ /* pcmcia layer only remaps "real" memory not iospace */
cf->socket.io_offset = (unsigned long) cf->socket.io_offset = (unsigned long)
......
...@@ -639,7 +639,7 @@ static int __devinit vrc4171_card_setup(char *options) ...@@ -639,7 +639,7 @@ static int __devinit vrc4171_card_setup(char *options)
int irq; int irq;
options += 4; options += 4;
irq = simple_strtoul(options, &options, 0); irq = simple_strtoul(options, &options, 0);
if (irq >= 0 && irq < NR_IRQS) if (irq >= 0 && irq < nr_irqs)
vrc4171_irq = irq; vrc4171_irq = irq;
if (*options != ',') if (*options != ',')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册