summaryrefslogtreecommitdiff
path: root/sound/soc/rockchip/rk3288_hdmi_analog.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2021-12-14 05:08:40 +0300
committerMark Brown <broonie@kernel.org>2021-12-20 15:47:21 +0300
commitb3a66d22a2fd5435bf4d0a357e220cfca88ae5e2 (patch)
treeb579943bc0f2917ea5db47ff91fde4093616e523 /sound/soc/rockchip/rk3288_hdmi_analog.c
parentab6c3e68ab6e3c545b044a00814946e2998c8c53 (diff)
downloadlinux-b3a66d22a2fd5435bf4d0a357e220cfca88ae5e2.tar.xz
ASoC: rockchip: 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-20-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/rockchip/rk3288_hdmi_analog.c')
-rw-r--r--sound/soc/rockchip/rk3288_hdmi_analog.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/sound/soc/rockchip/rk3288_hdmi_analog.c b/sound/soc/rockchip/rk3288_hdmi_analog.c
index 33a00774746d..b052642ea620 100644
--- a/sound/soc/rockchip/rk3288_hdmi_analog.c
+++ b/sound/soc/rockchip/rk3288_hdmi_analog.c
@@ -249,13 +249,9 @@ static int snd_rk_mc_probe(struct platform_device *pdev)
snd_soc_card_set_drvdata(card, machine);
ret = devm_snd_soc_register_card(&pdev->dev, card);
- if (ret == -EPROBE_DEFER)
- return -EPROBE_DEFER;
- if (ret) {
- dev_err(&pdev->dev,
- "Soc register card failed %d\n", ret);
- return ret;
- }
+ if (ret)
+ return dev_err_probe(&pdev->dev, ret,
+ "Soc register card failed\n");
return ret;
}