]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/serial/ucc_uart.c
parport: Use the PCI IRQ if offered
[linux-2.6-omap-h63xx.git] / drivers / serial / ucc_uart.c
index 539c933b335f306b2dc92182785ab09cf271cec6..7de66c06b05de5da9e08e84163d83645cf33106c 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)
@@ -1274,6 +1274,7 @@ static int ucc_uart_probe(struct of_device *ofdev,
        if (!iprop) {
                iprop = of_get_property(np, "device-id", NULL);
                if (!iprop) {
+                       kfree(qe_port);
                        dev_err(&ofdev->dev, "UCC is unspecified in "
                                "device tree\n");
                        return -EINVAL;