diff options
| -rw-r--r-- | sound/firewire/isight.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/firewire/isight.c b/sound/firewire/isight.c index de4decfb74d5..9ebe510ea26b 100644 --- a/sound/firewire/isight.c +++ b/sound/firewire/isight.c | |||
| @@ -638,7 +638,7 @@ static int isight_probe(struct fw_unit *unit, | |||
| 638 | if (!isight->audio_base) { | 638 | if (!isight->audio_base) { |
| 639 | dev_err(&unit->device, "audio unit base not found\n"); | 639 | dev_err(&unit->device, "audio unit base not found\n"); |
| 640 | err = -ENXIO; | 640 | err = -ENXIO; |
| 641 | goto err_unit; | 641 | goto error; |
| 642 | } | 642 | } |
| 643 | fw_iso_resources_init(&isight->resources, unit); | 643 | fw_iso_resources_init(&isight->resources, unit); |
| 644 | 644 | ||
| @@ -667,12 +667,12 @@ static int isight_probe(struct fw_unit *unit, | |||
| 667 | dev_set_drvdata(&unit->device, isight); | 667 | dev_set_drvdata(&unit->device, isight); |
| 668 | 668 | ||
| 669 | return 0; | 669 | return 0; |
| 670 | |||
| 671 | err_unit: | ||
| 672 | fw_unit_put(isight->unit); | ||
| 673 | mutex_destroy(&isight->mutex); | ||
| 674 | error: | 670 | error: |
| 675 | snd_card_free(card); | 671 | snd_card_free(card); |
| 672 | |||
| 673 | mutex_destroy(&isight->mutex); | ||
| 674 | fw_unit_put(isight->unit); | ||
| 675 | |||
| 676 | return err; | 676 | return err; |
| 677 | } | 677 | } |
| 678 | 678 | ||
