static void motu_card_free(struct snd_card *card) { struct snd_motu *motu = card->private_data; snd_motu_transaction_unregister(motu); snd_motu_stream_destroy_duplex(motu); }
static void motu_free(struct snd_motu *motu) { snd_motu_transaction_unregister(motu); snd_motu_stream_destroy_duplex(motu); fw_unit_put(motu->unit); mutex_destroy(&motu->mutex); kfree(motu); }