aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/sti
diff options
context:
space:
mode:
authorVincent Abriou <vincent.abriou@st.com>2017-02-02 09:51:43 +0100
committerVincent Abriou <vincent.abriou@st.com>2017-02-10 09:34:39 +0100
commitb7e05db3d1ff1adf45e2c028ea331e3a999fb56b (patch)
treec7339e0ca5660cc3ce341fef15180cf647966065 /drivers/gpu/drm/sti
parentdrm/sti: do not post GDP command if no update (diff)
downloadlinux-dev-b7e05db3d1ff1adf45e2c028ea331e3a999fb56b.tar.xz
linux-dev-b7e05db3d1ff1adf45e2c028ea331e3a999fb56b.zip
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>
Diffstat (limited to 'drivers/gpu/drm/sti')
-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;
}