diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-08-20 05:49:55 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-16 16:52:06 +0200 |
commit | a62c41337356989387d15020dc0f0288aaacfa44 (patch) | |
tree | 44c7f7c179ab37f5ee42069b228525e3a4bba728 /drivers/serial/sh-sci.c | |
parent | drivers/scsi: use nr_irqs (diff) | |
download | linux-a62c41337356989387d15020dc0f0288aaacfa44.tar.xz linux-a62c41337356989387d15020dc0f0288aaacfa44.zip |
drivers/serial: use nr_irqs
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'drivers/serial/sh-sci.c')
-rw-r--r-- | drivers/serial/sh-sci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/sh-sci.c b/drivers/serial/sh-sci.c index 3df2aaec829f..667b4b8fd074 100644 --- a/drivers/serial/sh-sci.c +++ b/drivers/serial/sh-sci.c @@ -1157,7 +1157,7 @@ static int sci_verify_port(struct uart_port *port, struct serial_struct *ser) { struct sci_port *s = &sci_ports[port->line]; - if (ser->irq != s->irqs[SCIx_TXI_IRQ] || ser->irq > NR_IRQS) + if (ser->irq != s->irqs[SCIx_TXI_IRQ] || ser->irq > nr_irqs) return -EINVAL; if (ser->baud_base < 2400) /* No paper tape reader for Mitch.. */ |