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

Commit b5e4b84d authored by Paulo Zanoni's avatar Paulo Zanoni Committed by Daniel Vetter
Browse files

drm/i915: intel_unregister_dsm_handler() doesn't need struct_mutex



So don't grab the lock before calling the function.

Reviewed-by: default avatarChris wilson <chris@chris-wilson.co.uk>
Signed-off-by: default avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 5abeca4e
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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 */