mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-04 19:22:08 -04:00
drm/vc4: hdmi: Limit noise when deferring snd card registration
We don't want to print an error message each time devm_snd_soc_register_card() returns -EPROBE_DEFER, the function will most likely succeed some time in the future, once the missing resources are available. So use dev_err_probe(), which will redirect the messages to the debug log level in such case. Signed-off-by: Nicolas Saenz Julienne <nsaenzju@redhat.com> Signed-off-by: Maxime Ripard <maxime@cerno.tech> Link: https://patchwork.freedesktop.org/patch/msgid/20210629121723.11523-1-nsaenzju@redhat.com
This commit is contained in:
committed by
Maxime Ripard
parent
375cca1cfe
commit
9d9fb756b5
@@ -1568,7 +1568,7 @@ static int vc4_hdmi_audio_init(struct vc4_hdmi *vc4_hdmi)
|
||||
snd_soc_card_set_drvdata(card, vc4_hdmi);
|
||||
ret = devm_snd_soc_register_card(dev, card);
|
||||
if (ret)
|
||||
dev_err(dev, "Could not register sound card: %d\n", ret);
|
||||
dev_err_probe(dev, ret, "Could not register sound card\n");
|
||||
|
||||
return ret;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user