diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2021-12-14 03:08:41 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-12-20 13:47:22 +0100 |
commit | 27c6eaebcf75e4fac145d17c7fa76bc64b60d24c (patch) | |
tree | 329d0ffc9e99afb1e2a47117a530506daae4ed32 /sound/soc/samsung/odroid.c | |
parent | ASoC: rockchip: Use dev_err_probe() helper (diff) | |
download | linux-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/odroid.c')
-rw-r--r-- | sound/soc/samsung/odroid.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/samsung/odroid.c b/sound/soc/samsung/odroid.c index ca643a488c3c..4ff12e2e704f 100644 --- a/sound/soc/samsung/odroid.c +++ b/sound/soc/samsung/odroid.c @@ -311,9 +311,7 @@ static int odroid_audio_probe(struct platform_device *pdev) ret = devm_snd_soc_register_card(dev, card); if (ret < 0) { - if (ret != -EPROBE_DEFER) - dev_err(dev, "snd_soc_register_card() failed: %d\n", - ret); + dev_err_probe(dev, ret, "snd_soc_register_card() failed\n"); goto err_put_clk_i2s; } |