drm: sti: correctly cleanup CRTC and planes

When bind failed make sure that CRTC and planes are
completely clean up to avoid properties duplication.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
This commit is contained in:
Benjamin Gaignard 2014-12-11 13:35:29 +01:00
parent 4fdbc678fe
commit f78e772a2c
1 changed files with 5 additions and 1 deletions

View File

@ -67,8 +67,12 @@ static int sti_drm_load(struct drm_device *dev, unsigned long flags)
sti_drm_mode_config_init(dev); sti_drm_mode_config_init(dev);
ret = component_bind_all(dev->dev, dev); ret = component_bind_all(dev->dev, dev);
if (ret) if (ret) {
drm_kms_helper_poll_fini(dev);
drm_mode_config_cleanup(dev);
kfree(private);
return ret; return ret;
}
drm_helper_disable_unused_functions(dev); drm_helper_disable_unused_functions(dev);