summaryrefslogtreecommitdiffstats
path: root/drivers/serial/serial_core.c
diff options
context:
space:
mode:
authorYinghai Lu <yhlu.kernel@gmail.com>2008-08-19 20:49:55 -0700
committerIngo Molnar <mingo@elte.hu>2008-10-16 16:52:06 +0200
commita62c41337356989387d15020dc0f0288aaacfa44 (patch)
tree44c7f7c179ab37f5ee42069b228525e3a4bba728 /drivers/serial/serial_core.c
parent171ac6ae94e31d0fcb5ae922efd4a77a7e48b4e5 (diff)
downloadop-kernel-dev-a62c41337356989387d15020dc0f0288aaacfa44.zip
op-kernel-dev-a62c41337356989387d15020dc0f0288aaacfa44.tar.gz
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/serial_core.c')
-rw-r--r--drivers/serial/serial_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/serial_core.c b/drivers/serial/serial_core.c
index 6bdf336..874786a 100644
--- a/drivers/serial/serial_core.c
+++ b/drivers/serial/serial_core.c
@@ -741,7 +741,7 @@ static int uart_set_info(struct uart_state *state,
if (port->ops->verify_port)
retval = port->ops->verify_port(port, &new_serial);
- if ((new_serial.irq >= NR_IRQS) || (new_serial.irq < 0) ||
+ if ((new_serial.irq >= nr_irqs) || (new_serial.irq < 0) ||
(new_serial.baud_base < 9600))
retval = -EINVAL;
OpenPOWER on IntegriCloud