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:
0e63a2b
)
ASoC: sam9g20_wm8731: Use dev_err_probe() for snd_soc_register_card()
author
Mark Brown
<broonie@kernel.org>
Fri, 6 May 2022 13:03:49 +0000
(14:03 +0100)
committer
Mark Brown
<broonie@kernel.org>
Mon, 9 May 2022 18:46:35 +0000
(19:46 +0100)
Log the error code when snd_soc_regster_card() fails, but fold in the
silencing of deferred probe errors.
Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
Link:
https://lore.kernel.org/r/20220506130349.451452-1-broonie@kernel.org
sound/soc/atmel/sam9g20_wm8731.c
patch
|
blob
|
history
diff --git
a/sound/soc/atmel/sam9g20_wm8731.c
b/sound/soc/atmel/sam9g20_wm8731.c
index 0365b583ba70c20408195f11cb362d229d3c29a6..4d25fb61c6527fd3d71b874951f09d1c750b4fc2 100644
(file)
--- a/
sound/soc/atmel/sam9g20_wm8731.c
+++ b/
sound/soc/atmel/sam9g20_wm8731.c
@@
-171,7
+171,8
@@
static int at91sam9g20ek_audio_probe(struct platform_device *pdev)
ret = snd_soc_register_card(card);
if (ret) {
- dev_err(&pdev->dev, "snd_soc_register_card() failed\n");
+ dev_err_probe(&pdev->dev, ret,
+ "snd_soc_register_card() failed: %d\n", ret);
goto err;
}