From b7e05db3d1ff1adf45e2c028ea331e3a999fb56b Mon Sep 17 00:00:00 2001 From: Vincent Abriou Date: Thu, 2 Feb 2017 09:51:43 +0100 Subject: [PATCH] drm/sti: unbind all components while driver cleanup Unbind all the components when the STI driver is unregistered. Signed-off-by: Vincent Abriou --- 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 9e4d96f7dd1c..7cdccb05ee80 100644 --- a/drivers/gpu/drm/sti/sti_drv.c +++ b/drivers/gpu/drm/sti/sti_drv.c @@ -255,6 +255,7 @@ static void sti_cleanup(struct drm_device *ddev) drm_kms_helper_poll_fini(ddev); drm_vblank_cleanup(ddev); + component_unbind_all(ddev->dev, ddev); kfree(private); ddev->dev_private = NULL; } -- 2.30.2