]> err.no Git - linux-2.6/blobdiff - drivers/serial/8250_pnp.c
CRISv10 serial driver rewrite
[linux-2.6] / drivers / serial / 8250_pnp.c
index ad0755919bcc864c8ee52396759ec9c311884c68..1de098e754978810db03ea655480bb4c9e213e45 100644 (file)
@@ -439,7 +439,8 @@ serial_pnp_probe(struct pnp_dev *dev, const struct pnp_device_id *dev_id)
        }
 
        memset(&port, 0, sizeof(struct uart_port));
-       port.irq = pnp_irq(dev, 0);
+       if (pnp_irq_valid(dev, 0))
+               port.irq = pnp_irq(dev, 0);
        if (pnp_port_valid(dev, 0)) {
                port.iobase = pnp_port_start(dev, 0);
                port.iotype = UPIO_PORT;