ASoC: wm8524: Do not print probe defer error
On an imx8mq-evk the following error is seen: [ 1.375809] wm8524-codec audio-codec: Failed to get mute line: -517 It happens because the codec driver may probe prior to the imx gpio driver, which causes a probe defer. Change to dev_err_probe() to avoid printing this error. Reported-by: Chris Healy <cphealy@gmail.com> Signed-off-by: Fabio Estevam <festevam@gmail.com> Link: https://lore.kernel.org/r/20210301193328.2123511-1-festevam@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
7810ea4c8f
commit
ee00e0bf7e
@ -227,7 +227,7 @@ static int wm8524_codec_probe(struct platform_device *pdev)
|
||||
wm8524->mute = devm_gpiod_get(&pdev->dev, "wlf,mute", GPIOD_OUT_LOW);
|
||||
if (IS_ERR(wm8524->mute)) {
|
||||
ret = PTR_ERR(wm8524->mute);
|
||||
dev_err(&pdev->dev, "Failed to get mute line: %d\n", ret);
|
||||
dev_err_probe(&pdev->dev, ret, "Failed to get mute line\n");
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user