|
@@ -26,7 +26,7 @@
|
|
int fw_iso_resources_init(struct fw_iso_resources *r, struct fw_unit *unit)
|
|
int fw_iso_resources_init(struct fw_iso_resources *r, struct fw_unit *unit)
|
|
{
|
|
{
|
|
r->channels_mask = ~0uLL;
|
|
r->channels_mask = ~0uLL;
|
|
- r->unit = fw_unit_get(unit);
|
|
|
|
|
|
+ r->unit = unit;
|
|
mutex_init(&r->mutex);
|
|
mutex_init(&r->mutex);
|
|
r->allocated = false;
|
|
r->allocated = false;
|
|
|
|
|
|
@@ -42,7 +42,6 @@ void fw_iso_resources_destroy(struct fw_iso_resources *r)
|
|
{
|
|
{
|
|
WARN_ON(r->allocated);
|
|
WARN_ON(r->allocated);
|
|
mutex_destroy(&r->mutex);
|
|
mutex_destroy(&r->mutex);
|
|
- fw_unit_put(r->unit);
|
|
|
|
}
|
|
}
|
|
EXPORT_SYMBOL(fw_iso_resources_destroy);
|
|
EXPORT_SYMBOL(fw_iso_resources_destroy);
|
|
|
|
|