From: Kefeng Wang Date: Sat, 24 Sep 2016 09:14:24 +0000 (+0800) Subject: tty: amba-pl011: Don't complain on -EPROBE_DEFER when no irq X-Git-Tag: v4.9-rc1~147^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=35aa33cf0b35af6f2f1d8fb81eea8cf723c65239;p=thirdparty%2Fkernel%2Flinux.git tty: amba-pl011: Don't complain on -EPROBE_DEFER when no irq Don't complain on -EPROBE_DEFER when attempting to get the irq. the driver probe will be retried later. Cc: Russell King Cc: Greg Kroah-Hartman Signed-off-by: Kefeng Wang Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c index 2d9ffab16ffeb..e2c33b9528d82 100644 --- a/drivers/tty/serial/amba-pl011.c +++ b/drivers/tty/serial/amba-pl011.c @@ -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;