diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-08-19 23:49:55 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-16 10:52:06 -0400 |
commit | a62c41337356989387d15020dc0f0288aaacfa44 (patch) | |
tree | 44c7f7c179ab37f5ee42069b228525e3a4bba728 /drivers/serial/8250.c | |
parent | 171ac6ae94e31d0fcb5ae922efd4a77a7e48b4e5 (diff) |
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/8250.c')
-rw-r--r-- | drivers/serial/8250.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/8250.c b/drivers/serial/8250.c index c66bb44c4747..006617e2211d 100644 --- a/drivers/serial/8250.c +++ b/drivers/serial/8250.c | |||
@@ -2486,7 +2486,7 @@ static void serial8250_config_port(struct uart_port *port, int flags) | |||
2486 | static int | 2486 | static int |
2487 | serial8250_verify_port(struct uart_port *port, struct serial_struct *ser) | 2487 | serial8250_verify_port(struct uart_port *port, struct serial_struct *ser) |
2488 | { | 2488 | { |
2489 | if (ser->irq >= NR_IRQS || ser->irq < 0 || | 2489 | if (ser->irq >= nr_irqs || ser->irq < 0 || |
2490 | ser->baud_base < 9600 || ser->type < PORT_UNKNOWN || | 2490 | ser->baud_base < 9600 || ser->type < PORT_UNKNOWN || |
2491 | ser->type >= ARRAY_SIZE(uart_config) || ser->type == PORT_CIRRUS || | 2491 | ser->type >= ARRAY_SIZE(uart_config) || ser->type == PORT_CIRRUS || |
2492 | ser->type == PORT_STARTECH) | 2492 | ser->type == PORT_STARTECH) |