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:
Nicolas Saenz Julienne 2021-06-29 14:17:23 +02:00 committed by Maxime Ripard
parent 375cca1cfe
commit 9d9fb756b5
No known key found for this signature in database
GPG key ID: E3EF0D6F671851C5

View file

@ -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;