Change-Id: Id3c6e588fa19fedf849f766df594521e17ba201c
*/
_pthread_mutex_lock(&private_display->lock);
tdm_event_loop_stop(private_display);
- tdm_event_loop_deinit(private_display);
_pthread_mutex_unlock(&private_display->lock);
+ tdm_event_loop_deinit(private_display);
+
/* when private_output is destroyed, all vblank resources of client and server
* are destroyed. Then we can call tdm_vblank_deinit. After destroying display,
* we can unload backend modulues.