1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-11 17:10:13 +00:00

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
This commit is contained in:
Geert Uytterhoeven 2023-09-15 10:53:49 +02:00
parent c285aac128
commit fbe544ffc0

View File

@ -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);
}