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:
parent
efc162cbd4
commit
11a95c583c
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user