Skip to content

Commit

Permalink
drm: renesas: shmobile: Shutdown the display on remove
Browse files Browse the repository at this point in the history
When the device is unbound from the driver, the display may be active.
Make sure it gets shut down.

Reviewed-by: Laurent Pinchart <[email protected]>
Signed-off-by: Geert Uytterhoeven <[email protected]>
Link: https://lore.kernel.org/r/ddf2736459d59d0e961f240e77da7b0a28caae15.1694767209.git.geert+renesas@glider.be
  • Loading branch information
geertu committed Oct 16, 2023
1 parent c285aac commit fbe544f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/renesas/shmobile/shmob_drm_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit fbe544f

Please sign in to comment.