Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp13723244ybl; Sun, 29 Dec 2019 19:07:39 -0800 (PST) X-Google-Smtp-Source: APXvYqwceBPLiL0glo5pqLntwypw9stHJrLpDVeX+1hfMIeuH+mSSosQ5Ey281XD+eycDKQM8KiN X-Received: by 2002:a9d:21f5:: with SMTP id s108mr53787754otb.152.1577675259183; Sun, 29 Dec 2019 19:07:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577675259; cv=none; d=google.com; s=arc-20160816; b=jNbI3O9xDlQHNEUhUsL45TYBGc1oEgXcAkiNoMSTLS1J1ebQ6LAi9DpDHb8u0vF6sC 1pPv2kxF4Knx2KD0YP5RsBTeVyYgqHpqqiISuTTdaP1hfwrcrMWElYXXeU6WalLAhKbR JyZeIOT2F4uiPMxAoFs7I/umouJFeYo+95O+y2YnwZcqVaPAkrH+xh7OeW6vFVihOnrz 6majwdOQFtkPTnJmpdEJf5CUl2elNy7cwsC3uGbVUAgsanlJnUA7+2RGQjxp68elOzIo HbZHoBsUmNkakSWVdqqEiH/E4lCZlrAxqifIsCrJf3UDYLjm88sS0tEitYKtWy6k1p++ Cf+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=spo3oo9vva8x7Fmp3YjwZh51xPVdHgLmqHJT35VzV3g=; b=VmtPwsadihpgHDn7EzMCI2An2utBGU+HwczLNc3e5mFtfnXSyv7vYy13AX2DRNvRDv sQdEN7HzD5li0+Yy3d9mKcobgcseiZckPh4rllIw3ENvq8jyHy4v89JJr8Lrj88+95nh qhitZwB3WsK36/upq/WKkFRz/sG6z2JijgcZatUpTTk4KNLiKLKlCGiPKiP9WotSxFRm H6bXbehb9lvuewcv9UrI/NEWJ8CNCFAhx341XO1oo5ngwF8rlnllB6xgyM98qi2R8cq5 1Bexe9PJDcAQW5H32qkGbmt8p/UYH2OCYQAaMIQul+MEvQWX//vnOH5kfe47gX6AwyQ+ A16A== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r4si742069otq.188.2019.12.29.19.07.25; Sun, 29 Dec 2019 19:07:39 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727075AbfL3DGJ (ORCPT + 99 others); Sun, 29 Dec 2019 22:06:09 -0500 Received: from inva021.nxp.com ([92.121.34.21]:48334 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726894AbfL3DGJ (ORCPT ); Sun, 29 Dec 2019 22:06:09 -0500 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 6BC782011C5; Mon, 30 Dec 2019 04:06:07 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 7A9212011C9; Mon, 30 Dec 2019 04:06:02 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 34F094029B; Mon, 30 Dec 2019 11:05:56 +0800 (SGT) From: Anson Huang To: thierry.reding@gmail.com, u.kleine-koenig@pengutronix.de, 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 Cc: Linux-imx@nxp.com Subject: [PATCH] pwm: imx27: Eliminate error message for defer probe Date: Mon, 30 Dec 2019 11:02:40 +0800 Message-Id: <1577674960-12011-1-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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); + return ret; } imx->clk_per = devm_clk_get(&pdev->dev, "per"); -- 2.7.4