summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/fsl-dcu
diff options
context:
space:
mode:
authorStefan Agner <stefan@agner.ch>2016-04-17 06:17:12 +0200
committerStefan Agner <stefan@agner.ch>2016-04-26 05:45:34 +0200
commit7d17a6264c0cf0ffacfc420553b494376cd93d36 (patch)
tree718c24370bd6cbad95b678eab7dcc427c024728f /drivers/gpu/drm/fsl-dcu
parentdrm/fsl-dcu: deallocate fbdev CMA on unload (diff)
downloadlinux-7d17a6264c0cf0ffacfc420553b494376cd93d36.tar.xz
linux-7d17a6264c0cf0ffacfc420553b494376cd93d36.zip
drm/fsl-dcu: disable output polling on driver unload
Disabling output polling before unloading the driver. Signed-off-by: Stefan Agner <stefan@agner.ch>
Diffstat (limited to 'drivers/gpu/drm/fsl-dcu')
-rw-r--r--drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c4
1 files changed, 4 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 182578dd3d6b..f9227b717e40 100644
--- a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c
+++ b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c
@@ -91,6 +91,8 @@ static int fsl_dcu_load(struct drm_device *dev, unsigned long flags)
return 0;
done:
+ drm_kms_helper_poll_fini(dev);
+
if (fsl_dev->fbdev)
drm_fbdev_cma_fini(fsl_dev->fbdev);
@@ -106,6 +108,8 @@ static int fsl_dcu_unload(struct drm_device *dev)
{
struct fsl_dcu_drm_device *fsl_dev = dev->dev_private;
+ drm_kms_helper_poll_fini(dev);
+
if (fsl_dev->fbdev)
drm_fbdev_cma_fini(fsl_dev->fbdev);