OSDN Git Service

drm: rcar-du: Shutdown the display on remove
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tue, 23 Mar 2021 00:09:53 +0000 (02:09 +0200)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 28 Jul 2021 13:33:10 +0000 (16:33 +0300)
When the device is unbound from the driver (the DU being a platform
device, this occurs either when removing the DU module, or when
unbinding the device manually through sysfs), the display may be active.
Make sure it gets shut down.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
drivers/gpu/drm/rcar-du/rcar_du_drv.c

index 44b18fa..4ac26d0 100644 (file)
@@ -553,6 +553,7 @@ static int rcar_du_remove(struct platform_device *pdev)
        struct drm_device *ddev = &rcdu->ddev;
 
        drm_dev_unregister(ddev);
+       drm_atomic_helper_shutdown(ddev);
 
        drm_kms_helper_poll_fini(ddev);