drm/tilcdc: disable crtc on unload
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 19 Oct 2015 11:15:26 +0000 (14:15 +0300)
committerJyri Sarha <jsarha@ti.com>
Thu, 25 Feb 2016 14:39:37 +0000 (16:39 +0200)
Disable crtc on unload. Call tilcdc_crtc_dpms() with DRM_MODE_DPMS_OFF
in the beginning of unload function.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
[Added description to the patch]
Signed-off-by: Jyri Sarha <jsarha@ti.com>
drivers/gpu/drm/tilcdc/tilcdc_drv.c

index 47f0e0282d5d5d1454abad7d392dd41da71bcd68..e1f697986289e83ea24c1b17d3f59c84aa4e8001 100644 (file)
@@ -112,6 +112,8 @@ static int tilcdc_unload(struct drm_device *dev)
 {
        struct tilcdc_drm_private *priv = dev->dev_private;
 
+       tilcdc_crtc_dpms(priv->crtc, DRM_MODE_DPMS_OFF);
+
        tilcdc_remove_external_encoders(dev);
 
        drm_fbdev_cma_fini(priv->fbdev);