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

Commit ba3fd954 authored by Jyri Sarha's avatar Jyri Sarha
Browse files

drm/tilcdc: Use tilcdc_crtc_shutdown() in tilcdc_crtc_destroy()



Use tilcdc_crtc_shutdown() instead of tilcdc_crtc_disable() in
tilcdc_crtc_destroy() and remove the modeset locking.

Signed-off-by: default avatarJyri Sarha <jsarha@ti.com>
parent 125fcc19
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -606,9 +606,7 @@ static void tilcdc_crtc_destroy(struct drm_crtc *crtc)
	struct tilcdc_crtc *tilcdc_crtc = to_tilcdc_crtc(crtc);
	struct tilcdc_drm_private *priv = crtc->dev->dev_private;

	drm_modeset_lock(&crtc->mutex, NULL);
	tilcdc_crtc_disable(crtc);
	drm_modeset_unlock(&crtc->mutex);
	tilcdc_crtc_shutdown(crtc);

	flush_workqueue(priv->wq);