diff options
Diffstat (limited to 'sound/firewire/isight.c')
-rw-r--r-- | sound/firewire/isight.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/firewire/isight.c b/sound/firewire/isight.c index 440030818db7..412b65f740d9 100644 --- a/sound/firewire/isight.c +++ b/sound/firewire/isight.c | |||
@@ -612,7 +612,6 @@ static void isight_card_free(struct snd_card *card) | |||
612 | 612 | ||
613 | fw_iso_resources_destroy(&isight->resources); | 613 | fw_iso_resources_destroy(&isight->resources); |
614 | fw_unit_put(isight->unit); | 614 | fw_unit_put(isight->unit); |
615 | fw_device_put(isight->device); | ||
616 | mutex_destroy(&isight->mutex); | 615 | mutex_destroy(&isight->mutex); |
617 | } | 616 | } |
618 | 617 | ||
@@ -645,7 +644,7 @@ static int isight_probe(struct device *unit_dev) | |||
645 | isight->card = card; | 644 | isight->card = card; |
646 | mutex_init(&isight->mutex); | 645 | mutex_init(&isight->mutex); |
647 | isight->unit = fw_unit_get(unit); | 646 | isight->unit = fw_unit_get(unit); |
648 | isight->device = fw_device_get(fw_dev); | 647 | isight->device = fw_dev; |
649 | isight->audio_base = get_unit_base(unit); | 648 | isight->audio_base = get_unit_base(unit); |
650 | if (!isight->audio_base) { | 649 | if (!isight->audio_base) { |
651 | dev_err(&unit->device, "audio unit base not found\n"); | 650 | dev_err(&unit->device, "audio unit base not found\n"); |
@@ -682,7 +681,6 @@ static int isight_probe(struct device *unit_dev) | |||
682 | 681 | ||
683 | err_unit: | 682 | err_unit: |
684 | fw_unit_put(isight->unit); | 683 | fw_unit_put(isight->unit); |
685 | fw_device_put(isight->device); | ||
686 | mutex_destroy(&isight->mutex); | 684 | mutex_destroy(&isight->mutex); |
687 | error: | 685 | error: |
688 | snd_card_free(card); | 686 | snd_card_free(card); |