static void bebob_free(struct snd_bebob *bebob)
{
snd_bebob_stream_destroy_duplex(bebob);
-
- mutex_destroy(&bebob->mutex);
- fw_unit_put(bebob->unit);
}
/*
if (bebob->registered) {
// Block till all of ALSA character devices are released.
snd_card_free(bebob->card);
- } else {
- /* Don't forget this case. */
- bebob_free(bebob);
}
+
+ mutex_destroy(&bebob->mutex);
+ fw_unit_put(bebob->unit);
}
static const struct snd_bebob_rate_spec normal_rate_spec = {
{
snd_dice_stream_destroy_duplex(dice);
snd_dice_transaction_destroy(dice);
-
- mutex_destroy(&dice->mutex);
- fw_unit_put(dice->unit);
}
/*
if (dice->registered) {
/* No need to wait for releasing card object in this context. */
snd_card_free_when_closed(dice->card);
- } else {
- /* Don't forget this case. */
- dice_free(dice);
}
+
+ mutex_destroy(&dice->mutex);
+ fw_unit_put(dice->unit);
}
static void dice_bus_reset(struct fw_unit *unit)
{
snd_dg00x_stream_destroy_duplex(dg00x);
snd_dg00x_transaction_unregister(dg00x);
-
- mutex_destroy(&dg00x->mutex);
- fw_unit_put(dg00x->unit);
}
static void dg00x_card_free(struct snd_card *card)
if (dg00x->registered) {
// Block till all of ALSA character devices are released.
snd_card_free(dg00x->card);
- } else {
- /* Don't forget this case. */
- dg00x_free(dg00x);
}
+
+ mutex_destroy(&dg00x->mutex);
+ fw_unit_put(dg00x->unit);
}
static const struct ieee1394_device_id snd_dg00x_id_table[] = {
{
snd_ff_stream_destroy_duplex(ff);
snd_ff_transaction_unregister(ff);
-
- mutex_destroy(&ff->mutex);
- fw_unit_put(ff->unit);
}
static void ff_card_free(struct snd_card *card)
if (ff->registered) {
// Block till all of ALSA character devices are released.
snd_card_free(ff->card);
- } else {
- /* Don't forget this case. */
- ff_free(ff);
}
+
+ mutex_destroy(&ff->mutex);
+ fw_unit_put(ff->unit);
}
static const struct snd_ff_spec spec_ff400 = {
{
snd_efw_stream_destroy_duplex(efw);
snd_efw_transaction_remove_instance(efw);
-
- mutex_destroy(&efw->mutex);
- fw_unit_put(efw->unit);
}
/*
if (efw->registered) {
// Block till all of ALSA character devices are released.
snd_card_free(efw->card);
- } else {
- /* Don't forget this case. */
- efw_free(efw);
}
+
+ mutex_destroy(&efw->mutex);
+ fw_unit_put(efw->unit);
}
static const struct ieee1394_device_id efw_id_table[] = {
struct isight *isight = card->private_data;
fw_iso_resources_destroy(&isight->resources);
- fw_unit_put(isight->unit);
- mutex_destroy(&isight->mutex);
}
static u64 get_unit_base(struct fw_unit *unit)
// Block till all of ALSA character devices are released.
snd_card_free(isight->card);
+
+ mutex_destroy(&isight->mutex);
+ fw_unit_put(isight->unit);
}
static const struct ieee1394_device_id isight_id_table[] = {
snd_motu_transaction_unregister(motu);
snd_motu_stream_destroy_duplex(motu);
-
- mutex_destroy(&motu->mutex);
- fw_unit_put(motu->unit);
}
/*
if (motu->registered) {
// Block till all of ALSA character devices are released.
snd_card_free(motu->card);
- } else {
- /* Don't forget this case. */
- motu_free(motu);
}
+
+ mutex_destroy(&motu->mutex);
+ fw_unit_put(motu->unit);
}
static void motu_bus_update(struct fw_unit *unit)
snd_oxfw_stream_destroy_simplex(oxfw, &oxfw->rx_stream);
if (oxfw->has_output)
snd_oxfw_stream_destroy_simplex(oxfw, &oxfw->tx_stream);
-
- mutex_destroy(&oxfw->mutex);
- fw_unit_put(oxfw->unit);
}
/*
if (oxfw->registered) {
// Block till all of ALSA character devices are released.
snd_card_free(oxfw->card);
- } else {
- /* Don't forget this case. */
- oxfw_free(oxfw);
}
+
+ mutex_destroy(&oxfw->mutex);
+ fw_unit_put(oxfw->unit);
}
static const struct compat_info griffin_firewave = {
{
snd_tscm_transaction_unregister(tscm);
snd_tscm_stream_destroy_duplex(tscm);
-
- mutex_destroy(&tscm->mutex);
- fw_unit_put(tscm->unit);
}
static void tscm_card_free(struct snd_card *card)
if (tscm->registered) {
// Block till all of ALSA character devices are released.
snd_card_free(tscm->card);
- } else {
- /* Don't forget this case. */
- tscm_free(tscm);
}
+
+ mutex_destroy(&tscm->mutex);
+ fw_unit_put(tscm->unit);
}
static const struct ieee1394_device_id snd_tscm_id_table[] = {