]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/serial/ucc_uart.c
drivers/serial: use nr_irqs
[linux-2.6-omap-h63xx.git] / drivers / serial / ucc_uart.c
index 5c5d18dcb6aca4b0443b9bb8d3d5b2579b5705c0..503f0b99a3b89c93f1404285fdff0ebd78a8748f 100644 (file)
@@ -1066,7 +1066,7 @@ static int qe_uart_verify_port(struct uart_port *port,
        if (ser->type != PORT_UNKNOWN && ser->type != PORT_CPM)
                return -EINVAL;
 
-       if (ser->irq < 0 || ser->irq >= NR_IRQS)
+       if (ser->irq < 0 || ser->irq >= nr_irqs)
                return -EINVAL;
 
        if (ser->baud_base < 9600)