Merge branches 'sh/serial-rework' and 'sh/oprofile'
[platform/adaptation/renesas_rcar/renesas_kernel.git] / drivers / serial / sh-sci.c
index 6a5132f..47816e6 100644 (file)
@@ -1134,7 +1134,7 @@ static int sci_verify_port(struct uart_port *port, struct serial_struct *ser)
 {
        struct sci_port *s = &sci_ports[port->line];
 
-       if (ser->irq != s->irqs[SCIx_TXI_IRQ] || ser->irq > NR_IRQS)
+       if (ser->irq != s->irqs[SCIx_TXI_IRQ] || ser->irq > nr_irqs)
                return -EINVAL;
        if (ser->baud_base < 2400)
                /* No paper tape reader for Mitch.. */