diff options
| author | Uwe Kleine-König <[email protected]> | 2019-01-07 19:53:51 +0000 |
|---|---|---|
| committer | Thierry Reding <[email protected]> | 2019-01-10 08:40:58 +0000 |
| commit | b9a5c60bc2f65561535dc05d0c740aa6e9e3bdf2 (patch) | |
| tree | b8330bd6d2a76c139acb184f8de0eef8cffe1975 /drivers/pwm/pwm-imx.c | |
| parent | pwm: imx: Set driver data earlier simplifying the end of ->probe() (diff) | |
| download | kernel-b9a5c60bc2f65561535dc05d0c740aa6e9e3bdf2.tar.gz kernel-b9a5c60bc2f65561535dc05d0c740aa6e9e3bdf2.zip | |
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 <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-imx.c')
| -rw-r--r-- | drivers/pwm/pwm-imx.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/pwm/pwm-imx.c b/drivers/pwm/pwm-imx.c index 809493d86d22..30380fcb5cfb 100644 --- a/drivers/pwm/pwm-imx.c +++ b/drivers/pwm/pwm-imx.c @@ -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; |
