|
@@ -2083,14 +2083,13 @@ static int soc_cleanup_card_resources(struct snd_soc_card *card)
|
|
/* remove auxiliary devices */
|
|
/* remove auxiliary devices */
|
|
soc_remove_aux_devices(card);
|
|
soc_remove_aux_devices(card);
|
|
|
|
|
|
|
|
+ snd_soc_dapm_free(&card->dapm);
|
|
soc_cleanup_card_debugfs(card);
|
|
soc_cleanup_card_debugfs(card);
|
|
|
|
|
|
/* remove the card */
|
|
/* remove the card */
|
|
if (card->remove)
|
|
if (card->remove)
|
|
card->remove(card);
|
|
card->remove(card);
|
|
|
|
|
|
- snd_soc_dapm_free(&card->dapm);
|
|
|
|
-
|
|
|
|
snd_card_free(card->snd_card);
|
|
snd_card_free(card->snd_card);
|
|
return 0;
|
|
return 0;
|
|
|
|
|