summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/imx-sgtl5000.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2021-12-14 11:08:34 +0900
committerMark Brown <broonie@kernel.org>2021-12-20 12:47:14 +0000
commit2e6f557ca35aa330dbf31c5e1cc8119eff1526fa (patch)
treed8075f8cf74eea2675c66af64bc04d0a979a90cf /sound/soc/fsl/imx-sgtl5000.c
parent88fb6da3f4313feb885f432cfc3051b33fdb2df7 (diff)
downloadlinux-next-2e6f557ca35aa330dbf31c5e1cc8119eff1526fa.tar.gz
ASoC: fsl: 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-14-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/fsl/imx-sgtl5000.c')
-rw-r--r--sound/soc/fsl/imx-sgtl5000.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/fsl/imx-sgtl5000.c b/sound/soc/fsl/imx-sgtl5000.c
index 2f1acd011042..8daced42d55e 100644
--- a/sound/soc/fsl/imx-sgtl5000.c
+++ b/sound/soc/fsl/imx-sgtl5000.c
@@ -173,9 +173,7 @@ static int imx_sgtl5000_probe(struct platform_device *pdev)
ret = devm_snd_soc_register_card(&pdev->dev, &data->card);
if (ret) {
- if (ret != -EPROBE_DEFER)
- dev_err(&pdev->dev, "snd_soc_register_card failed (%d)\n",
- ret);
+ dev_err_probe(&pdev->dev, ret, "snd_soc_register_card failed\n");
goto fail;
}