mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
pwm: bcm2835: Suppress error message during deferred probe
This suppresses error messages in case the PWM clock isn't ready yet. Signed-off-by: Stefan Wahren <wahrenst@gmx.net> Reviewed-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
7e9713af31
commit
9e3ca01f7e
@ -153,8 +153,11 @@ static int bcm2835_pwm_probe(struct platform_device *pdev)
|
||||
|
||||
pc->clk = devm_clk_get(&pdev->dev, NULL);
|
||||
if (IS_ERR(pc->clk)) {
|
||||
dev_err(&pdev->dev, "clock not found: %ld\n", PTR_ERR(pc->clk));
|
||||
return PTR_ERR(pc->clk);
|
||||
ret = PTR_ERR(pc->clk);
|
||||
if (ret != -EPROBE_DEFER)
|
||||
dev_err(&pdev->dev, "clock not found: %d\n", ret);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
ret = clk_prepare_enable(pc->clk);
|
||||
|
Loading…
Reference in New Issue
Block a user