Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <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>

authored by

Kefeng Wang and committed by
Greg Kroah-Hartman
35aa33cf b94b10aa

+2 -1
+2 -1
drivers/tty/serial/amba-pl011.c
··· 2582 2582 2583 2583 ret = platform_get_irq(pdev, 0); 2584 2584 if (ret < 0) { 2585 - dev_err(&pdev->dev, "cannot obtain irq\n"); 2585 + if (ret != -EPROBE_DEFER) 2586 + dev_err(&pdev->dev, "cannot obtain irq\n"); 2586 2587 return ret; 2587 2588 } 2588 2589 uap->port.irq = ret;