浏览代码

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>
Kefeng Wang 9 年之前
父节点
当前提交
35aa33cf0b
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      drivers/tty/serial/amba-pl011.c

+ 2 - 1
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;