Skip to content

Commit

Permalink
drm/tilcdc: Use tilcdc_crtc_shutdown() in tilcdc_crtc_destroy()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jyri Sarha committed Oct 5, 2017
1 parent 125fcc1 commit ba3fd95
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/gpu/drm/tilcdc/tilcdc_crtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit ba3fd95

Please sign in to comment.