From: Vincent Abriou Date: Thu, 2 Feb 2017 08:51:43 +0000 (+0100) Subject: drm/sti: unbind all components while driver cleanup X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b7e05db3d1ff1adf45e2c028ea331e3a999fb56b;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git drm/sti: unbind all components while driver cleanup Unbind all the components when the STI driver is unregistered. Signed-off-by: Vincent Abriou --- 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; }