diff options
author | Vincent Abriou <vincent.abriou@st.com> | 2017-02-02 03:51:43 -0500 |
---|---|---|
committer | Vincent Abriou <vincent.abriou@st.com> | 2017-02-10 03:34:39 -0500 |
commit | b7e05db3d1ff1adf45e2c028ea331e3a999fb56b (patch) | |
tree | c7339e0ca5660cc3ce341fef15180cf647966065 | |
parent | e9f494d36fc4cab2ba7e9e7f3bb4edf5b214f651 (diff) |
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.c | 1 |
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) | |||
255 | 255 | ||
256 | drm_kms_helper_poll_fini(ddev); | 256 | drm_kms_helper_poll_fini(ddev); |
257 | drm_vblank_cleanup(ddev); | 257 | drm_vblank_cleanup(ddev); |
258 | component_unbind_all(ddev->dev, ddev); | ||
258 | kfree(private); | 259 | kfree(private); |
259 | ddev->dev_private = NULL; | 260 | ddev->dev_private = NULL; |
260 | } | 261 | } |