File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -95,12 +95,12 @@ static int sun4i_drv_bind(struct device *dev)
95
95
/* drm_vblank_init calls kcalloc, which can fail */
96
96
ret = drm_vblank_init (drm , drm -> mode_config .num_crtc );
97
97
if (ret )
98
- goto cleanup_mode_config ;
98
+ goto unbind_all ;
99
99
100
100
/* Remove early framebuffers (ie. simplefb) */
101
101
ret = drm_aperture_remove_framebuffers (false, & sun4i_drv_driver );
102
102
if (ret )
103
- goto cleanup_mode_config ;
103
+ goto unbind_all ;
104
104
105
105
sun4i_framebuffer_init (drm );
106
106
@@ -119,6 +119,8 @@ static int sun4i_drv_bind(struct device *dev)
119
119
120
120
finish_poll :
121
121
drm_kms_helper_poll_fini (drm );
122
+ unbind_all :
123
+ component_unbind_all (dev , NULL );
122
124
cleanup_mode_config :
123
125
drm_mode_config_cleanup (drm );
124
126
of_reserved_mem_device_release (dev );
You can’t perform that action at this time.
0 commit comments