diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-08-19 20:49:55 -0700 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-16 16:52:06 +0200 |
commit | a62c41337356989387d15020dc0f0288aaacfa44 (patch) | |
tree | 44c7f7c179ab37f5ee42069b228525e3a4bba728 /drivers/serial/cpm_uart | |
parent | 171ac6ae94e31d0fcb5ae922efd4a77a7e48b4e5 (diff) | |
download | op-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/cpm_uart')
-rw-r--r-- | drivers/serial/cpm_uart/cpm_uart_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/cpm_uart/cpm_uart_core.c b/drivers/serial/cpm_uart/cpm_uart_core.c index 25efca5..e54574c 100644 --- a/drivers/serial/cpm_uart/cpm_uart_core.c +++ b/drivers/serial/cpm_uart/cpm_uart_core.c @@ -623,7 +623,7 @@ static int cpm_uart_verify_port(struct uart_port *port, if (ser->type != PORT_UNKNOWN && ser->type != PORT_CPM) ret = -EINVAL; - if (ser->irq < 0 || ser->irq >= NR_IRQS) + if (ser->irq < 0 || ser->irq >= nr_irqs) ret = -EINVAL; if (ser->baud_base < 9600) ret = -EINVAL; |