flush_delayed_work_sync(&rtd->delayed_work);
}
+ /* free the ALSA card at first; this syncs with pending operations */
+ snd_card_free(card->snd_card);
+
/* remove auxiliary devices */
for (i = 0; i < card->num_aux_devs; i++)
soc_remove_aux_dev(card, i);
snd_soc_dapm_free(&card->dapm);
kfree(card->rtd);
- snd_card_free(card->snd_card);
return 0;
-
}
/* removes a socdev */