mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-01 03:44:27 -04:00
drm/i915: intel_unregister_dsm_handler() doesn't need struct_mutex
So don't grab the lock before calling the function. Reviewed-by: Chris wilson <chris@chris-wilson.co.uk> Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
committed by
Daniel Vetter
parent
5abeca4ec5
commit
b5e4b84d9f
@@ -15603,12 +15603,10 @@ void intel_modeset_cleanup(struct drm_device *dev)
|
||||
*/
|
||||
drm_kms_helper_poll_fini(dev);
|
||||
|
||||
mutex_lock(&dev->struct_mutex);
|
||||
|
||||
intel_unregister_dsm_handler();
|
||||
|
||||
mutex_lock(&dev->struct_mutex);
|
||||
intel_fbc_disable(dev);
|
||||
|
||||
mutex_unlock(&dev->struct_mutex);
|
||||
|
||||
/* flush any delayed tasks or pending work */
|
||||
|
||||
Reference in New Issue
Block a user