aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/mpc52xx_uart.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tty/serial/mpc52xx_uart.c')
-rw-r--r--drivers/tty/serial/mpc52xx_uart.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/serial/mpc52xx_uart.c b/drivers/tty/serial/mpc52xx_uart.c
index 1093a88a1fe3..e9a770d77a6e 100644
--- a/drivers/tty/serial/mpc52xx_uart.c
+++ b/drivers/tty/serial/mpc52xx_uart.c
@@ -507,7 +507,7 @@ static int __init mpc512x_psc_fifoc_init(void)
507 507
508 psc_fifoc_irq = irq_of_parse_and_map(np, 0); 508 psc_fifoc_irq = irq_of_parse_and_map(np, 0);
509 of_node_put(np); 509 of_node_put(np);
510 if (psc_fifoc_irq == NO_IRQ) { 510 if (psc_fifoc_irq == 0) {
511 pr_err("%s: Can't get FIFOC irq\n", __func__); 511 pr_err("%s: Can't get FIFOC irq\n", __func__);
512 iounmap(psc_fifoc); 512 iounmap(psc_fifoc);
513 return -ENODEV; 513 return -ENODEV;
@@ -1354,7 +1354,7 @@ static int __devinit mpc52xx_uart_of_probe(struct platform_device *op)
1354 } 1354 }
1355 1355
1356 psc_ops->get_irq(port, op->dev.of_node); 1356 psc_ops->get_irq(port, op->dev.of_node);
1357 if (port->irq == NO_IRQ) { 1357 if (port->irq == 0) {
1358 dev_dbg(&op->dev, "Could not get irq\n"); 1358 dev_dbg(&op->dev, "Could not get irq\n");
1359 return -EINVAL; 1359 return -EINVAL;
1360 } 1360 }