Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp14142881ybl; Mon, 30 Dec 2019 04:56:11 -0800 (PST) X-Google-Smtp-Source: APXvYqzF+A2Kq8gdmA7OFjwyuCu+5JOp29zj3Cah50ugw3LoIWZ1OJ76FfD60MDsQHKCIneOlMzT X-Received: by 2002:a05:6830:605:: with SMTP id w5mr73314102oti.79.1577710571576; Mon, 30 Dec 2019 04:56:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577710571; cv=none; d=google.com; s=arc-20160816; b=csDpJFzbN5tcHLrMFi7W5WIup1OjGMbnihEHtbkoeuKhglw4t+vQVSv4uJQ7/+neJZ FK9Y4vMrjZZ1l9mGtlqAK/+un3MUyyiGWlZrb9mtuHW6aWku2JGoUxL596ltUwGOT5X1 VWBoFo90J8IjkrIxkR+WdZg7haJT1KkU+WAJXbtX7Ga/A0HQmd29iCp1wn8jJI+idwgy wIIvIauhE1XsW1V1yiJkHp2mUjGyBJRJHGsPEP0P1/YZRZkezxgiLSil8Au67dQrIGBH JEssflOqrlxOICiM10CkKYZ9rJ5wTvKkd2kAnnLvamnMUmWQVzBV9r62A7/6hHe2mRuv p2UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=PxmSC++DY7tRlxURDSbnmtpCuSP9rNGTBggOL5bNI2o=; b=kE2qSp7IjCw1bSgg/5vd98ZZiLZFhfMB/FxuAPIxT+2PpAr+dyYf7qIN5Xpb9stMbr F4l4zwfJvCChuPjVRA/dJSByUTIl9TJ4mvXJFFliyuzS3syeU9nRmbwk8LpaPfe15jJA jQi6SivivmCl1G88+SeSZ+E6D6chxWN3poKtvfgHf9xocJxutMC4Cx9lIBU2z1xwQTay 8plrAf8Ls7Nyx4Bo4ngW2TQvYDwwNW8lyWMyjuXeKH0CPHWQPBjvvKxk8hn5MYd+jkEs UG+3seZCuO3YwwbVSFTojBi76jRdr6f4zhICvsVjimXrcfBvS78W2hqZUYJjZt3djyni cAIg== ARC-Authentication-Results: i=1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 9si9972330oiz.237.2019.12.30.04.56.00; Mon, 30 Dec 2019 04:56:11 -0800 (PST) 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 S1727464AbfL3MzD (ORCPT + 99 others); Mon, 30 Dec 2019 07:55:03 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:55629 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727397AbfL3MzD (ORCPT ); Mon, 30 Dec 2019 07:55:03 -0500 Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iluZU-0001GO-4J; Mon, 30 Dec 2019 13:54:56 +0100 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1iluZS-0005OH-BM; Mon, 30 Dec 2019 13:54:54 +0100 Date: Mon, 30 Dec 2019 13:54:54 +0100 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Anson Huang Cc: thierry.reding@gmail.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-pwm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Linux-imx@nxp.com Subject: Re: [PATCH] pwm: imx27: Eliminate error message for defer probe Message-ID: <20191230125454.7i4dahdc3wclpkgz@pengutronix.de> References: <1577674960-12011-1-git-send-email-Anson.Huang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1577674960-12011-1-git-send-email-Anson.Huang@nxp.com> User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 30, 2019 at 11:02:40AM +0800, Anson Huang wrote: > For defer probe error, no need to output error message which > will cause confusion. > > Signed-off-by: Anson Huang > --- > drivers/pwm/pwm-imx27.c | 10 +++++++--- > 1 file changed, 7 insertions(+), 3 deletions(-) > > diff --git a/drivers/pwm/pwm-imx27.c b/drivers/pwm/pwm-imx27.c > index 59d8b12..35a7ac42 100644 > --- a/drivers/pwm/pwm-imx27.c > +++ b/drivers/pwm/pwm-imx27.c > @@ -319,9 +319,13 @@ static int pwm_imx27_probe(struct platform_device *pdev) > > imx->clk_ipg = devm_clk_get(&pdev->dev, "ipg"); > if (IS_ERR(imx->clk_ipg)) { > - dev_err(&pdev->dev, "getting ipg clock failed with %ld\n", > - PTR_ERR(imx->clk_ipg)); > - return PTR_ERR(imx->clk_ipg); > + int ret = PTR_ERR(imx->clk_ipg); > + > + if (ret != -EPROBE_DEFER) > + dev_err(&pdev->dev, > + "getting ipg clock failed with %d\n", > + ret); While you touch this part, you could convert to %pe to get a more expressive error message. But even independent of this the patch is fine, so Acked-by: Uwe Kleine-K?nig Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | https://www.pengutronix.de/ |