diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 62aa320c2070..9d70c24a9cb4 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -2137,7 +2137,8 @@ probe_aux_dev_err: soc_remove_aux_devices(card); probe_dai_err: - soc_remove_dai_links(card); + if (ret != -ENODEV) + soc_remove_dai_links(card); card_probe_error: if (card->remove)