aboutsummaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
authorJonathan Hamilton <jonathan.hamilton@imgtec.com>2014-07-17 15:54:44 -0700
committerJohn Stultz <john.stultz@linaro.org>2016-02-16 13:53:23 -0800
commit9f577b18243925d419a8e167c4a8a70449afec70 (patch)
tree5f01a5f264a52074a9b36463946e457137da10f8 /drivers/video
parentefc4bbe21c18b2ae4d5576152cf4fb99a82890e3 (diff)
video: adf: Cleanup sw_sync timeline at adf_device_destroy
If a sw_sync timeline was created by ADF (for drivers that do not implement ops->complete_fence) we should clean it up when the ADF device is destroyed. Change-Id: Idd90180fcae56a87111f7d12bdd80190756a6b80 Signed-off-by: Jonathan Hamilton <jonathan.hamilton@imgtec.com>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/adf/adf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/video/adf/adf.c b/drivers/video/adf/adf.c
index 231881c2b355..42c30c05826a 100644
--- a/drivers/video/adf/adf.c
+++ b/drivers/video/adf/adf.c
@@ -613,6 +613,10 @@ void adf_device_destroy(struct adf_device *dev)
}
mutex_destroy(&dev->post_lock);
mutex_destroy(&dev->client_lock);
+
+ if (dev->timeline)
+ sync_timeline_destroy(&dev->timeline->obj);
+
adf_obj_destroy(&dev->base, &adf_devices);
}
EXPORT_SYMBOL(adf_device_destroy);