From: Jeffy Chen Date: Thu, 6 Apr 2017 12:31:24 +0000 (+0800) Subject: drm/rockchip: Shutdown all crtcs when unbinding drm X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c1bb81888746b6fff8c3b0abfecc751ab73b3a08;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git drm/rockchip: Shutdown all crtcs when unbinding drm Signed-off-by: Jeffy Chen Signed-off-by: Sean Paul Link: http://patchwork.freedesktop.org/patch/msgid/1491481885-13775-12-git-send-email-jeffy.chen@rock-chips.com --- diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c index f24968f1bb25..c6b1b7f3a2a3 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c +++ b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c @@ -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);