]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/tilcdc: Remove unnecessary tilcdc_crtc_disable() from tilcdc_unload()
authorJyri Sarha <jsarha@ti.com>
Tue, 6 Sep 2016 19:16:27 +0000 (22:16 +0300)
committerJyri Sarha <jsarha@ti.com>
Wed, 7 Sep 2016 12:54:42 +0000 (15:54 +0300)
Remove unnecessary tilcdc_crtc_disable() from tilcdc_unload(). The
tilcdc_crtc_disable() called via tilcdc_crtc_destroy() by
drm_mode_config_cleanup() couple of lines later.

The early call to tilcdc_crtc_disable() was a wrong fix (that worked)
for calling drm_flip_work_cleanup() before flushing the flip-work
queue.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/tilcdc/tilcdc_drv.c

index 52ff3e120bb994cbd950693bd18590399b2dab1b..1981ae9c80a1d57958075f7c8eb2d9211157f71e 100644 (file)
@@ -200,8 +200,6 @@ static int tilcdc_unload(struct drm_device *dev)
 {
        struct tilcdc_drm_private *priv = dev->dev_private;
 
-       tilcdc_crtc_disable(priv->crtc);
-
        tilcdc_remove_external_encoders(dev);
 
        drm_fbdev_cma_fini(priv->fbdev);