summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Abriou <vincent.abriou@st.com>2017-02-02 11:51:43 +0300
committerVincent Abriou <vincent.abriou@st.com>2017-02-10 11:34:39 +0300
commitb7e05db3d1ff1adf45e2c028ea331e3a999fb56b (patch)
treec7339e0ca5660cc3ce341fef15180cf647966065
parente9f494d36fc4cab2ba7e9e7f3bb4edf5b214f651 (diff)
downloadlinux-b7e05db3d1ff1adf45e2c028ea331e3a999fb56b.tar.xz
drm/sti: unbind all components while driver cleanup
Unbind all the components when the STI driver is unregistered. Signed-off-by: Vincent Abriou <vincent.abriou@st.com>
-rw-r--r--drivers/gpu/drm/sti/sti_drv.c1
1 files changed, 1 insertions, 0 deletions
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;
}