summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8524.c
diff options
context:
space:
mode:
authorFabio Estevam <festevam@gmail.com>2021-03-01 20:33:28 +0100
committerMark Brown <broonie@kernel.org>2021-03-10 14:08:48 +0100
commitee00e0bf7e4fe6c253219680b339add32686efee (patch)
tree7ae87906ae42908bfeff3772e35e209a02d715a0 /sound/soc/codecs/wm8524.c
parentASoC: Intel: atom: fix kernel-doc (diff)
downloadlinux-ee00e0bf7e4fe6c253219680b339add32686efee.tar.xz
linux-ee00e0bf7e4fe6c253219680b339add32686efee.zip
ASoC: wm8524: Do not print probe defer error
On an imx8mq-evk the following error is seen: [ 1.375809] wm8524-codec audio-codec: Failed to get mute line: -517 It happens because the codec driver may probe prior to the imx gpio driver, which causes a probe defer. Change to dev_err_probe() to avoid printing this error. Reported-by: Chris Healy <cphealy@gmail.com> Signed-off-by: Fabio Estevam <festevam@gmail.com> Link: https://lore.kernel.org/r/20210301193328.2123511-1-festevam@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/wm8524.c')
-rw-r--r--sound/soc/codecs/wm8524.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8524.c b/sound/soc/codecs/wm8524.c
index 4e9ab542f648..81f858f6bd67 100644
--- a/sound/soc/codecs/wm8524.c
+++ b/sound/soc/codecs/wm8524.c
@@ -227,7 +227,7 @@ static int wm8524_codec_probe(struct platform_device *pdev)
wm8524->mute = devm_gpiod_get(&pdev->dev, "wlf,mute", GPIOD_OUT_LOW);
if (IS_ERR(wm8524->mute)) {
ret = PTR_ERR(wm8524->mute);
- dev_err(&pdev->dev, "Failed to get mute line: %d\n", ret);
+ dev_err_probe(&pdev->dev, ret, "Failed to get mute line\n");
return ret;
}