Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 95d843af authored by Jonathan Hamilton's avatar Jonathan Hamilton Committed by Ruchi Kandoi
Browse files

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: default avatarJonathan Hamilton <jonathan.hamilton@imgtec.com>
parent 732ae141
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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);