Commit 92a00794 authored by Seung-Woo Kim's avatar Seung-Woo Kim Committed by Mark Brown

ASoC: bcm2835: Silence clk_get() error on -EPROBE_DEFER

Silence clk_get() error with dev_dbg() on -EPROBE_DEFER.
Signed-off-by: default avatarSeung-Woo Kim <sw0312.kim@samsung.com>
Link: https://lore.kernel.org/r/1595564371-13692-1-git-send-email-sw0312.kim@samsung.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 483e20a0
...@@ -841,9 +841,12 @@ static int bcm2835_i2s_probe(struct platform_device *pdev) ...@@ -841,9 +841,12 @@ static int bcm2835_i2s_probe(struct platform_device *pdev)
dev->clk_prepared = false; dev->clk_prepared = false;
dev->clk = devm_clk_get(&pdev->dev, NULL); dev->clk = devm_clk_get(&pdev->dev, NULL);
if (IS_ERR(dev->clk)) { if (IS_ERR(dev->clk)) {
dev_err(&pdev->dev, "could not get clk: %ld\n", ret = PTR_ERR(dev->clk);
PTR_ERR(dev->clk)); if (ret == -EPROBE_DEFER)
return PTR_ERR(dev->clk); dev_dbg(&pdev->dev, "could not get clk: %d\n", ret);
else
dev_err(&pdev->dev, "could not get clk: %d\n", ret);
return ret;
} }
/* Request ioarea */ /* Request ioarea */
......
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