mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
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>
This commit is contained in:
parent
58c62d4474
commit
e947bc2827
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user