summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c
diff options
context:
space:
mode:
authorStefan Agner <stefan@agner.ch>2016-10-19 17:32:21 -0700
committerStefan Agner <stefan@agner.ch>2016-11-28 17:18:38 -0800
commit39c74b515bc2172597f6a85c7310cbf348d66a82 (patch)
treeccef72df993fce9d9d82311abef759a118fed224 /drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c
parent39a5019a2c13580f21efc756babccb4c03b6a8ce (diff)
downloadtalos-obmc-linux-39c74b515bc2172597f6a85c7310cbf348d66a82.tar.gz
talos-obmc-linux-39c74b515bc2172597f6a85c7310cbf348d66a82.zip
drm/fsl-dcu: disable outputs before unloading driver
Make sure that all outputs are disabled before unloading the DRM driver. Otherwise vblank handling is not shut down properly and warnings such as this appear: WARNING: CPU: 0 PID: 540 at drivers/gpu/drm/drm_irq.c:339 drm_vblank_cleanup+0x5c/0x94 Signed-off-by: Stefan Agner <stefan@agner.ch>
Diffstat (limited to 'drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c')
-rw-r--r--drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c
index 30c46a80a540..f8313f2b113a 100644
--- a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c
+++ b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c
@@ -108,6 +108,7 @@ static int fsl_dcu_unload(struct drm_device *dev)
{
struct fsl_dcu_drm_device *fsl_dev = dev->dev_private;
+ drm_crtc_force_disable_all(dev);
drm_kms_helper_poll_fini(dev);
if (fsl_dev->fbdev)
OpenPOWER on IntegriCloud