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: Jyri Sarha <jsarha@ti.com>
This commit is contained in:
Jyri Sarha 2017-05-29 22:09:44 +03:00
parent 125fcc19da
commit ba3fd954f0
1 changed files with 1 additions and 3 deletions

View File

@ -606,9 +606,7 @@ static void tilcdc_crtc_destroy(struct drm_crtc *crtc)
struct tilcdc_crtc *tilcdc_crtc = to_tilcdc_crtc(crtc); struct tilcdc_crtc *tilcdc_crtc = to_tilcdc_crtc(crtc);
struct tilcdc_drm_private *priv = crtc->dev->dev_private; struct tilcdc_drm_private *priv = crtc->dev->dev_private;
drm_modeset_lock(&crtc->mutex, NULL); tilcdc_crtc_shutdown(crtc);
tilcdc_crtc_disable(crtc);
drm_modeset_unlock(&crtc->mutex);
flush_workqueue(priv->wq); flush_workqueue(priv->wq);