drm/fsl-dcu: use new drm_atomic_helper_shutdown
authorStefan Agner <stefan@agner.ch>
Fri, 2 Jun 2017 02:50:21 +0000 (19:50 -0700)
committerStefan Agner <stefan@agner.ch>
Thu, 8 Jun 2017 21:59:14 +0000 (14:59 -0700)
Commit 18dddadc78c9 ("drm/atomic: Introduce drm_atomic_helper_shutdown")
introduced a new helper to shutdown all CRTCs to replace the buggy
drm_crtc_force_disable_all() function. Make use of the new atomic
helper drm_atomic_helper_shutdown() to shutdown CRTCs.

Signed-off-by: Stefan Agner <stefan@agner.ch>
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c

index b134acf19c41632d32a770361720d7feced14f92..5cbde196895aa42873c77c15c101e487f3d065e0 100644 (file)
@@ -113,7 +113,7 @@ static void fsl_dcu_unload(struct drm_device *dev)
 {
        struct fsl_dcu_drm_device *fsl_dev = dev->dev_private;
 
-       drm_crtc_force_disable_all(dev);
+       drm_atomic_helper_shutdown(dev);
        drm_kms_helper_poll_fini(dev);
 
        if (fsl_dev->fbdev)