drm/rockchip: Shutdown all crtcs when unbinding drm
authorJeffy Chen <jeffy.chen@rock-chips.com>
Thu, 6 Apr 2017 12:31:24 +0000 (20:31 +0800)
committerSean Paul <seanpaul@chromium.org>
Fri, 7 Apr 2017 17:28:32 +0000 (13:28 -0400)
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1491481885-13775-12-git-send-email-jeffy.chen@rock-chips.com
drivers/gpu/drm/rockchip/rockchip_drm_drv.c

index f24968f1bb2543047058b8aa37a9d4833135e8bf..c6b1b7f3a2a397740d5545671113def5bb2e5519 100644 (file)
@@ -199,6 +199,7 @@ static void rockchip_drm_unbind(struct device *dev)
        rockchip_drm_fbdev_fini(drm_dev);
        drm_kms_helper_poll_fini(drm_dev);
 
+       drm_atomic_helper_shutdown(drm_dev);
        drm_vblank_cleanup(drm_dev);
        component_unbind_all(dev, drm_dev);
        drm_mode_config_cleanup(drm_dev);