Skip to content

Commit 92a0079

Browse files
devusr-sw-kimbroonie
authored andcommitted
ASoC: bcm2835: Silence clk_get() error on -EPROBE_DEFER
Silence clk_get() error with dev_dbg() on -EPROBE_DEFER. Signed-off-by: Seung-Woo Kim <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 483e20a commit 92a0079

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

sound/soc/bcm/bcm2835-i2s.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -841,9 +841,12 @@ static int bcm2835_i2s_probe(struct platform_device *pdev)
841841
dev->clk_prepared = false;
842842
dev->clk = devm_clk_get(&pdev->dev, NULL);
843843
if (IS_ERR(dev->clk)) {
844-
dev_err(&pdev->dev, "could not get clk: %ld\n",
845-
PTR_ERR(dev->clk));
846-
return PTR_ERR(dev->clk);
844+
ret = PTR_ERR(dev->clk);
845+
if (ret == -EPROBE_DEFER)
846+
dev_dbg(&pdev->dev, "could not get clk: %d\n", ret);
847+
else
848+
dev_err(&pdev->dev, "could not get clk: %d\n", ret);
849+
return ret;
847850
}
848851

849852
/* Request ioarea */

0 commit comments

Comments
 (0)