projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
483e20a
)
ASoC: bcm2835: Silence clk_get() error on -EPROBE_DEFER
author
Seung-Woo Kim
<sw0312.kim@samsung.com>
Fri, 24 Jul 2020 04:19:31 +0000
(13:19 +0900)
committer
Mark Brown
<broonie@kernel.org>
Tue, 28 Jul 2020 16:04:07 +0000
(17:04 +0100)
Silence clk_get() error with dev_dbg() on -EPROBE_DEFER.
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Link:
https://lore.kernel.org/r/1595564371-13692-1-git-send-email-sw0312.kim@samsung.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/bcm/bcm2835-i2s.c
patch
|
blob
|
history
diff --git
a/sound/soc/bcm/bcm2835-i2s.c
b/sound/soc/bcm/bcm2835-i2s.c
index d80b570e950ea7059bff5b37a7c5980d958dd453..dc34fe1559c6b916f008c4e66683a45534db9ecd 100644
(file)
--- a/
sound/soc/bcm/bcm2835-i2s.c
+++ b/
sound/soc/bcm/bcm2835-i2s.c
@@
-841,9
+841,12
@@
static int bcm2835_i2s_probe(struct platform_device *pdev)
dev->clk_prepared = false;
dev->clk = devm_clk_get(&pdev->dev, NULL);
if (IS_ERR(dev->clk)) {
- dev_err(&pdev->dev, "could not get clk: %ld\n",
- PTR_ERR(dev->clk));
- return PTR_ERR(dev->clk);
+ ret = PTR_ERR(dev->clk);
+ if (ret == -EPROBE_DEFER)
+ 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 */