diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-08-20 07:49:55 +0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-16 18:52:06 +0400 |
commit | a62c41337356989387d15020dc0f0288aaacfa44 (patch) | |
tree | 44c7f7c179ab37f5ee42069b228525e3a4bba728 /drivers/serial/serial_core.c | |
parent | 171ac6ae94e31d0fcb5ae922efd4a77a7e48b4e5 (diff) | |
download | linux-a62c41337356989387d15020dc0f0288aaacfa44.tar.xz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/serial_core.c b/drivers/serial/serial_core.c index 6bdf3362e3b1..874786a11fe9 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; |