drivers/serial: use nr_irqs
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user