Call the drm_mode_config_cleanup() function on removal to ensure that all KMS objects are properly cleaned up and destroyed. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@xxxxxxxxxxxxxxxx> --- drivers/gpu/drm/sti/sti_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/sti/sti_drv.c b/drivers/gpu/drm/sti/sti_drv.c index 55b6967d27e1..9c3a000fab5e 100644 --- a/drivers/gpu/drm/sti/sti_drv.c +++ b/drivers/gpu/drm/sti/sti_drv.c @@ -276,6 +276,7 @@ static void sti_unbind(struct device *dev) struct drm_device *ddev = dev_get_drvdata(dev); drm_dev_unregister(ddev); + drm_mode_config_cleanup(ddev); sti_cleanup(ddev); drm_dev_unref(ddev); } -- Regards, Laurent Pinchart _______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/dri-devel