mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
e9f494d36f
commit
b7e05db3d1
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue