]> git.karo-electronics.de Git - linux-beck.git/commitdiff
tty: amba-pl011: Don't complain on -EPROBE_DEFER when no irq
authorKefeng Wang <wangkefeng.wang@huawei.com>
Sat, 24 Sep 2016 09:14:24 +0000 (17:14 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Sep 2016 10:57:16 +0000 (12:57 +0200)
Don't complain on -EPROBE_DEFER when attempting to get the irq.
the driver probe will be retried later.

Cc: Russell King <linux@armlinux.org.uk>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/amba-pl011.c

index 2d9ffab16ffeb9b3f4dd3640cfbb75ab92326770..e2c33b9528d82ed7a2c27d083d7b1d222da68178 100644 (file)
@@ -2582,7 +2582,8 @@ static int sbsa_uart_probe(struct platform_device *pdev)
 
        ret = platform_get_irq(pdev, 0);
        if (ret < 0) {
-               dev_err(&pdev->dev, "cannot obtain irq\n");
+               if (ret != -EPROBE_DEFER)
+                       dev_err(&pdev->dev, "cannot obtain irq\n");
                return ret;
        }
        uap->port.irq   = ret;