Commit a368c343 authored by Anson Huang's avatar Anson Huang Committed by Thierry Reding

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: default avatarAnson Huang <Anson.Huang@nxp.com>
Acked-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent cba8d3bf
...@@ -319,9 +319,13 @@ static int pwm_imx27_probe(struct platform_device *pdev) ...@@ -319,9 +319,13 @@ static int pwm_imx27_probe(struct platform_device *pdev)
imx->clk_ipg = devm_clk_get(&pdev->dev, "ipg"); imx->clk_ipg = devm_clk_get(&pdev->dev, "ipg");
if (IS_ERR(imx->clk_ipg)) { if (IS_ERR(imx->clk_ipg)) {
dev_err(&pdev->dev, "getting ipg clock failed with %ld\n", int ret = PTR_ERR(imx->clk_ipg);
PTR_ERR(imx->clk_ipg));
return 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"); imx->clk_per = devm_clk_get(&pdev->dev, "per");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment