diff options
author | Mario Limonciello <mario.limonciello@amd.com> | 2021-07-22 16:27:27 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-07-23 16:52:49 +0300 |
commit | af7dc6f194a866cb3e991ef5248ffdeb3ef5c46a (patch) | |
tree | 40636ca0c34dc447126809e35fd3cb364d64ee23 /sound/soc | |
parent | 08413fca62c63ccd245d20985460759c84499ebc (diff) | |
download | linux-af7dc6f194a866cb3e991ef5248ffdeb3ef5c46a.tar.xz |
ASoC: amd: Don't show messages about deferred probing by default
Nearly every boot with a Lenovo P14s is showing
acp_pdm_mach acp_pdm_mach.0: snd_soc_register_card(acp) failed: -517
This isn't useful to a user, especially as probing will run again.
Use the dev_err_probe helper to hide the deferrerd probing messages.
CC: markpearson@lenovo.com
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20210722132731.13264-1-mario.limonciello@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/amd/renoir/acp3x-rn.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sound/soc/amd/renoir/acp3x-rn.c b/sound/soc/amd/renoir/acp3x-rn.c index 306134b89a82..5d979a7b77fb 100644 --- a/sound/soc/amd/renoir/acp3x-rn.c +++ b/sound/soc/amd/renoir/acp3x-rn.c @@ -54,10 +54,9 @@ static int acp_probe(struct platform_device *pdev) snd_soc_card_set_drvdata(card, machine); ret = devm_snd_soc_register_card(&pdev->dev, card); if (ret) { - dev_err(&pdev->dev, - "snd_soc_register_card(%s) failed: %d\n", - acp_card.name, ret); - return ret; + return dev_err_probe(&pdev->dev, ret, + "snd_soc_register_card(%s) failed\n", + card->name); } return 0; } |