diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2023-09-15 11:53:49 +0300 |
---|---|---|
committer | Geert Uytterhoeven <geert+renesas@glider.be> | 2023-10-16 12:47:47 +0300 |
commit | fbe544ffc094dfba8a0a4f1985879010d609521e (patch) | |
tree | 9974c0a8b1e9bb4614a3cdb06f0df3744c45eee8 /drivers/gpu/drm/renesas/shmobile | |
parent | c285aac128edadd42ba165df2aa28f22dbaeb602 (diff) | |
download | linux-fbe544ffc094dfba8a0a4f1985879010d609521e.tar.xz |
drm: renesas: shmobile: Shutdown the display on remove
When the device is unbound from the driver, the display may be active.
Make sure it gets shut down.
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/ddf2736459d59d0e961f240e77da7b0a28caae15.1694767209.git.geert+renesas@glider.be
Diffstat (limited to 'drivers/gpu/drm/renesas/shmobile')
-rw-r--r-- | drivers/gpu/drm/renesas/shmobile/shmob_drm_drv.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/renesas/shmobile/shmob_drm_drv.c b/drivers/gpu/drm/renesas/shmobile/shmob_drm_drv.c index c3a1995403d6..ec90f9878771 100644 --- a/drivers/gpu/drm/renesas/shmobile/shmob_drm_drv.c +++ b/drivers/gpu/drm/renesas/shmobile/shmob_drm_drv.c @@ -16,6 +16,7 @@ #include <linux/pm_runtime.h> #include <linux/slab.h> +#include <drm/drm_crtc_helper.h> #include <drm/drm_drv.h> #include <drm/drm_fbdev_generic.h> #include <drm/drm_gem_dma_helper.h> @@ -172,6 +173,7 @@ static void shmob_drm_remove(struct platform_device *pdev) struct drm_device *ddev = &sdev->ddev; drm_dev_unregister(ddev); + drm_helper_force_disable_all(ddev); drm_kms_helper_poll_fini(ddev); } |