Commit f09b6e96 authored by Johan Hovold's avatar Johan Hovold Committed by Mark Brown

ASoC: core: suppress probe deferral errors

Suppress probe deferral error messages when probing link components to
avoid spamming the logs, for example, if a required component has not
yet been registered:

	snd-sc8280xp sound: ASoC: failed to instantiate card -517

Note that dev_err_probe() is not used as the card can be unbound and
rebound while the underlying platform device remains bound to its
driver.
Signed-off-by: default avatarJohan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20230705123018.30903-9-johan+linaro@kernel.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent b6c3bdda
...@@ -1988,8 +1988,10 @@ static int snd_soc_bind_card(struct snd_soc_card *card) ...@@ -1988,8 +1988,10 @@ static int snd_soc_bind_card(struct snd_soc_card *card)
/* probe all components used by DAI links on this card */ /* probe all components used by DAI links on this card */
ret = soc_probe_link_components(card); ret = soc_probe_link_components(card);
if (ret < 0) { if (ret < 0) {
dev_err(card->dev, if (ret != -EPROBE_DEFER) {
"ASoC: failed to instantiate card %d\n", ret); dev_err(card->dev,
"ASoC: failed to instantiate card %d\n", ret);
}
goto probe_end; goto probe_end;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment