diff options
-rw-r--r-- | sound/soc/soc-core.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 6aeba0d66ec5..86087cb9e44e 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -2076,10 +2076,12 @@ static int snd_soc_instantiate_card(struct snd_soc_card *card) mutex_lock(&client_mutex); for_each_card_prelinks(card, i, dai_link) { ret = soc_init_dai_link(card, dai_link); - if (ret) { - soc_cleanup_platform(card); + if (ret && ret != -EPROBE_DEFER) { dev_err(card->dev, "ASoC: failed to init link %s: %d\n", dai_link->name, ret); + } + if (ret) { + soc_cleanup_platform(card); mutex_unlock(&client_mutex); return ret; } |