diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 3c6713da3ad9..7e8bf3aa73c7 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -1734,7 +1734,8 @@ probe_aux_dev_err: soc_remove_aux_dev(card, i); probe_dai_err: - soc_remove_dai_links(card); + if (ret != -ENODEV) + soc_remove_dai_links(card); card_probe_error: if (card->remove)