diff options
author | Liviu Dudau <Liviu.Dudau@arm.com> | 2018-02-27 13:23:06 -0500 |
---|---|---|
committer | Liviu Dudau <Liviu.Dudau@arm.com> | 2018-03-14 07:38:03 -0400 |
commit | 57085dca982bd042f64aa23f5e03747595b2c8c0 (patch) | |
tree | c025bc16a8929cd1fa019e0188395988ef86c747 | |
parent | 828f207077c699a8363415efbcb2a6d8a11bb100 (diff) |
drm: mali-dp: Turn off CRTC vblank when removing module.
When unbinding the mali-dp driver the drm_vblank_cleanup() function
warns us that the vblanks are still enabled. Fix that by calling
drm_crtc_vblank_off() in the malidp_unbind() function.
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
-rw-r--r-- | drivers/gpu/drm/arm/malidp_drv.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/arm/malidp_drv.c b/drivers/gpu/drm/arm/malidp_drv.c index 274db28c0648..8d20faa198cf 100644 --- a/drivers/gpu/drm/arm/malidp_drv.c +++ b/drivers/gpu/drm/arm/malidp_drv.c | |||
@@ -677,8 +677,10 @@ static void malidp_unbind(struct device *dev) | |||
677 | drm_fb_cma_fbdev_fini(drm); | 677 | drm_fb_cma_fbdev_fini(drm); |
678 | drm_kms_helper_poll_fini(drm); | 678 | drm_kms_helper_poll_fini(drm); |
679 | pm_runtime_get_sync(dev); | 679 | pm_runtime_get_sync(dev); |
680 | drm_crtc_vblank_off(&malidp->crtc); | ||
680 | malidp_se_irq_fini(drm); | 681 | malidp_se_irq_fini(drm); |
681 | malidp_de_irq_fini(drm); | 682 | malidp_de_irq_fini(drm); |
683 | drm->irq_enabled = false; | ||
682 | component_unbind_all(dev, drm); | 684 | component_unbind_all(dev, drm); |
683 | of_node_put(malidp->crtc.port); | 685 | of_node_put(malidp->crtc.port); |
684 | malidp->crtc.port = NULL; | 686 | malidp->crtc.port = NULL; |