ASoC: sunxi: 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-23-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Kuninori Morimoto 2021-12-14 11:08:43 +09:00 committed by Mark Brown
parent efc162cbd4
commit 11a95c583c
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -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;
} }