From patchwork Sat Sep 24 09:14:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 76930 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp265090qgf; Sat, 24 Sep 2016 02:20:46 -0700 (PDT) X-Received: by 10.98.9.25 with SMTP id e25mr20082349pfd.143.1474708845976; Sat, 24 Sep 2016 02:20:45 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w8si12733110paj.25.2016.09.24.02.20.45; Sat, 24 Sep 2016 02:20:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761964AbcIXJUi (ORCPT + 27 others); Sat, 24 Sep 2016 05:20:38 -0400 Received: from szxga02-in.huawei.com ([119.145.14.65]:16772 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761926AbcIXJUa (ORCPT ); Sat, 24 Sep 2016 05:20:30 -0400 Received: from 172.24.1.47 (EHLO SZXEML424-HUB.china.huawei.com) ([172.24.1.47]) by szxrg02-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id DNQ03901; Sat, 24 Sep 2016 17:16:25 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by SZXEML424-HUB.china.huawei.com (10.82.67.153) with Microsoft SMTP Server id 14.3.235.1; Sat, 24 Sep 2016 17:16:14 +0800 From: Kefeng Wang To: Wei Xu CC: Rob Herring , Mark Rutland , , Catalin Marinas , Will Deacon , , , , Kefeng Wang , Russell King , Greg Kroah-Hartman Subject: [PATCH 4/5] tty: amba-pl011: Don't complain on -EPROBE_DEFER when no irq Date: Sat, 24 Sep 2016 17:14:24 +0800 Message-ID: <1474708465-38958-5-git-send-email-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 1.7.12.4 In-Reply-To: <1474708465-38958-1-git-send-email-wangkefeng.wang@huawei.com> References: <1474708465-38958-1-git-send-email-wangkefeng.wang@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020203.57E64469.005B, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2013-06-18 04:22:30, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 043051923cba7c6b80d8e97dcb7c6428 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/tty/serial/amba-pl011.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 1.7.12.4 diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c index 8a9e213..7d9b291 100644 --- a/drivers/tty/serial/amba-pl011.c +++ b/drivers/tty/serial/amba-pl011.c @@ -2555,7 +2555,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;