summaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-imx27.c
diff options
context:
space:
mode:
authorAnson Huang <Anson.Huang@nxp.com>2019-12-30 04:02:40 +0100
committerThierry Reding <thierry.reding@gmail.com>2020-01-20 13:20:21 +0100
commita368c34340c2543592f7bcd8941b797091a9e74a (patch)
treeff48b1acc8d38b7367df7f0e8efbd94e74153f40 /drivers/pwm/pwm-imx27.c
parentpwm: sun4i: Fix inconsistent IS_ERR and PTR_ERR (diff)
downloadlinux-a368c34340c2543592f7bcd8941b797091a9e74a.tar.xz
linux-a368c34340c2543592f7bcd8941b797091a9e74a.zip
pwm: imx27: Eliminate error message for defer probe
For defer probe error, no need to output error message which will cause confusion. Signed-off-by: Anson Huang <Anson.Huang@nxp.com> Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pwm/pwm-imx27.c')
-rw-r--r--drivers/pwm/pwm-imx27.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/pwm/pwm-imx27.c b/drivers/pwm/pwm-imx27.c
index 59d8b1289808..35a7ac42269c 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");