diff options
-rw-r--r-- | sound/firewire/iso-resources.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/firewire/iso-resources.c b/sound/firewire/iso-resources.c index 5f17b77ee152..f0e4d502d604 100644 --- a/sound/firewire/iso-resources.c +++ b/sound/firewire/iso-resources.c | |||
@@ -26,7 +26,7 @@ | |||
26 | int fw_iso_resources_init(struct fw_iso_resources *r, struct fw_unit *unit) | 26 | int fw_iso_resources_init(struct fw_iso_resources *r, struct fw_unit *unit) |
27 | { | 27 | { |
28 | r->channels_mask = ~0uLL; | 28 | r->channels_mask = ~0uLL; |
29 | r->unit = fw_unit_get(unit); | 29 | r->unit = unit; |
30 | mutex_init(&r->mutex); | 30 | mutex_init(&r->mutex); |
31 | r->allocated = false; | 31 | r->allocated = false; |
32 | 32 | ||
@@ -42,7 +42,6 @@ void fw_iso_resources_destroy(struct fw_iso_resources *r) | |||
42 | { | 42 | { |
43 | WARN_ON(r->allocated); | 43 | WARN_ON(r->allocated); |
44 | mutex_destroy(&r->mutex); | 44 | mutex_destroy(&r->mutex); |
45 | fw_unit_put(r->unit); | ||
46 | } | 45 | } |
47 | EXPORT_SYMBOL(fw_iso_resources_destroy); | 46 | EXPORT_SYMBOL(fw_iso_resources_destroy); |
48 | 47 | ||