diff options
Diffstat (limited to 'drivers/gpu/drm/sti/sti_drm_drv.c')
-rw-r--r-- | drivers/gpu/drm/sti/sti_drm_drv.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/drm/sti/sti_drm_drv.c b/drivers/gpu/drm/sti/sti_drm_drv.c index 8e64220e8796..5239fa121726 100644 --- a/drivers/gpu/drm/sti/sti_drm_drv.c +++ b/drivers/gpu/drm/sti/sti_drm_drv.c | |||
@@ -67,8 +67,12 @@ static int sti_drm_load(struct drm_device *dev, unsigned long flags) | |||
67 | sti_drm_mode_config_init(dev); | 67 | sti_drm_mode_config_init(dev); |
68 | 68 | ||
69 | ret = component_bind_all(dev->dev, dev); | 69 | ret = component_bind_all(dev->dev, dev); |
70 | if (ret) | 70 | if (ret) { |
71 | drm_kms_helper_poll_fini(dev); | ||
72 | drm_mode_config_cleanup(dev); | ||
73 | kfree(private); | ||
71 | return ret; | 74 | return ret; |
75 | } | ||
72 | 76 | ||
73 | drm_helper_disable_unused_functions(dev); | 77 | drm_helper_disable_unused_functions(dev); |
74 | 78 | ||