Commit 11a95c58 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown

ASoC: sunxi: Use dev_err_probe() helper

Use the dev_err_probe() helper, instead of open-coding the same
operation.
Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/20211214020843.2225831-23-kuninori.morimoto.gx@renesas.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent efc162cb
...@@ -1752,8 +1752,7 @@ static int sun4i_codec_probe(struct platform_device *pdev) ...@@ -1752,8 +1752,7 @@ static int sun4i_codec_probe(struct platform_device *pdev)
GPIOD_OUT_LOW); GPIOD_OUT_LOW);
if (IS_ERR(scodec->gpio_pa)) { if (IS_ERR(scodec->gpio_pa)) {
ret = PTR_ERR(scodec->gpio_pa); ret = PTR_ERR(scodec->gpio_pa);
if (ret != -EPROBE_DEFER) dev_err_probe(&pdev->dev, ret, "Failed to get pa gpio\n");
dev_err(&pdev->dev, "Failed to get pa gpio: %d\n", ret);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment