Skip to content

Commit a368c34

Browse files
Anson-Huangthierryreding
authored andcommitted
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 <[email protected]> Acked-by: Uwe Kleine-König <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent cba8d3b commit a368c34

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

drivers/pwm/pwm-imx27.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,9 +319,13 @@ static int pwm_imx27_probe(struct platform_device *pdev)
319319

320320
imx->clk_ipg = devm_clk_get(&pdev->dev, "ipg");
321321
if (IS_ERR(imx->clk_ipg)) {
322-
dev_err(&pdev->dev, "getting ipg clock failed with %ld\n",
323-
PTR_ERR(imx->clk_ipg));
324-
return PTR_ERR(imx->clk_ipg);
322+
int ret = PTR_ERR(imx->clk_ipg);
323+
324+
if (ret != -EPROBE_DEFER)
325+
dev_err(&pdev->dev,
326+
"getting ipg clock failed with %d\n",
327+
ret);
328+
return ret;
325329
}
326330

327331
imx->clk_per = devm_clk_get(&pdev->dev, "per");

0 commit comments

Comments
 (0)