summaryrefslogtreecommitdiffstats
path: root/sound/soc/samsung/smdk_wm8994.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2021-12-14 03:08:41 +0100
committerMark Brown <broonie@kernel.org>2021-12-20 13:47:22 +0100
commit27c6eaebcf75e4fac145d17c7fa76bc64b60d24c (patch)
tree329d0ffc9e99afb1e2a47117a530506daae4ed32 /sound/soc/samsung/smdk_wm8994.c
parentASoC: rockchip: Use dev_err_probe() helper (diff)
downloadlinux-27c6eaebcf75e4fac145d17c7fa76bc64b60d24c.tar.xz
linux-27c6eaebcf75e4fac145d17c7fa76bc64b60d24c.zip
ASoC: samsung: Use dev_err_probe() helper
Use the dev_err_probe() helper, instead of open-coding the same operation. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Link: https://lore.kernel.org/r/20211214020843.2225831-21-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/samsung/smdk_wm8994.c')
-rw-r--r--sound/soc/samsung/smdk_wm8994.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/samsung/smdk_wm8994.c b/sound/soc/samsung/smdk_wm8994.c
index 7661b637946d..821ad1eb1b79 100644
--- a/sound/soc/samsung/smdk_wm8994.c
+++ b/sound/soc/samsung/smdk_wm8994.c
@@ -179,8 +179,8 @@ static int smdk_audio_probe(struct platform_device *pdev)
ret = devm_snd_soc_register_card(&pdev->dev, card);
- if (ret && ret != -EPROBE_DEFER)
- dev_err(&pdev->dev, "snd_soc_register_card() failed:%d\n", ret);
+ if (ret)
+ dev_err_probe(&pdev->dev, ret, "snd_soc_register_card() failed\n");
return ret;
}