From: Mark Brown Date: Fri, 6 May 2022 13:03:49 +0000 (+0100) Subject: ASoC: sam9g20_wm8731: Use dev_err_probe() for snd_soc_register_card() X-Git-Tag: v6.1-rc5~574^2~68^2~54 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=29f4078f777fed4cb47695b284938fbfd80f990e;p=platform%2Fkernel%2Flinux-starfive.git ASoC: sam9g20_wm8731: Use dev_err_probe() for snd_soc_register_card() Log the error code when snd_soc_regster_card() fails, but fold in the silencing of deferred probe errors. Signed-off-by: Mark Brown Reviewed-by: Codrin Ciubotariu Link: https://lore.kernel.org/r/20220506130349.451452-1-broonie@kernel.org --- diff --git a/sound/soc/atmel/sam9g20_wm8731.c b/sound/soc/atmel/sam9g20_wm8731.c index 0365b58..4d25fb6 100644 --- a/sound/soc/atmel/sam9g20_wm8731.c +++ b/sound/soc/atmel/sam9g20_wm8731.c @@ -171,7 +171,8 @@ static int at91sam9g20ek_audio_probe(struct platform_device *pdev) ret = snd_soc_register_card(card); if (ret) { - dev_err(&pdev->dev, "snd_soc_register_card() failed\n"); + dev_err_probe(&pdev->dev, ret, + "snd_soc_register_card() failed: %d\n", ret); goto err; }