diff options
author | Jonathan Hamilton <jonathan.hamilton@imgtec.com> | 2014-07-17 15:54:44 -0700 |
---|---|---|
committer | Jonathan Hamilton <jonathan.hamilton@imgtec.com> | 2014-07-17 16:02:20 -0700 |
commit | e947bc2827cf608bd42ec9480e759766e5dfe09c (patch) | |
tree | 59d6740f37921217706e8a3a138150f7a205bbff | |
parent | 58c62d4474fbeda42851553a546e5cb860a036ea (diff) | |
download | edison-v3.10-e947bc2827cf608bd42ec9480e759766e5dfe09c.tar.gz |
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>
-rw-r--r-- | drivers/video/adf/adf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/video/adf/adf.c b/drivers/video/adf/adf.c index 231881c2b35..42c30c05826 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); |