mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 14:42:24 +00:00
pwm: imx: Don't print an error on -EPROBE_DEFER
When getting the peripheral clock fails with -EPROBE_DEFER the driver is usually probed again later and emitting an error message is irritating. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
This commit is contained in:
parent
f20b187e32
commit
b9a5c60bc2
@ -411,9 +411,14 @@ static int imx_pwm_probe(struct platform_device *pdev)
|
||||
|
||||
imx->clk_per = devm_clk_get(&pdev->dev, "per");
|
||||
if (IS_ERR(imx->clk_per)) {
|
||||
dev_err(&pdev->dev, "getting per clock failed with %ld\n",
|
||||
PTR_ERR(imx->clk_per));
|
||||
return PTR_ERR(imx->clk_per);
|
||||
int ret = PTR_ERR(imx->clk_per);
|
||||
|
||||
if (ret != -EPROBE_DEFER)
|
||||
dev_err(&pdev->dev,
|
||||
"failed to get peripheral clock: %d\n",
|
||||
ret);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
imx->chip.ops = data->ops;
|
||||
|
Loading…
Reference in New Issue
Block a user