diff options
-rw-r--r-- | drivers/gpu/drm/drm_fb_helper.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c index f546d1e8af82..4ecc869fb5be 100644 --- a/drivers/gpu/drm/drm_fb_helper.c +++ b/drivers/gpu/drm/drm_fb_helper.c | |||
@@ -1230,7 +1230,6 @@ static void drm_setup_crtcs(struct drm_fb_helper *fb_helper) | |||
1230 | struct drm_device *dev = fb_helper->dev; | 1230 | struct drm_device *dev = fb_helper->dev; |
1231 | struct drm_fb_helper_crtc **crtcs; | 1231 | struct drm_fb_helper_crtc **crtcs; |
1232 | struct drm_display_mode **modes; | 1232 | struct drm_display_mode **modes; |
1233 | struct drm_encoder *encoder; | ||
1234 | struct drm_mode_set *modeset; | 1233 | struct drm_mode_set *modeset; |
1235 | bool *enabled; | 1234 | bool *enabled; |
1236 | int width, height; | 1235 | int width, height; |
@@ -1241,11 +1240,6 @@ static void drm_setup_crtcs(struct drm_fb_helper *fb_helper) | |||
1241 | width = dev->mode_config.max_width; | 1240 | width = dev->mode_config.max_width; |
1242 | height = dev->mode_config.max_height; | 1241 | height = dev->mode_config.max_height; |
1243 | 1242 | ||
1244 | /* clean out all the encoder/crtc combos */ | ||
1245 | list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { | ||
1246 | encoder->crtc = NULL; | ||
1247 | } | ||
1248 | |||
1249 | crtcs = kcalloc(dev->mode_config.num_connector, | 1243 | crtcs = kcalloc(dev->mode_config.num_connector, |
1250 | sizeof(struct drm_fb_helper_crtc *), GFP_KERNEL); | 1244 | sizeof(struct drm_fb_helper_crtc *), GFP_KERNEL); |
1251 | modes = kcalloc(dev->mode_config.num_connector, | 1245 | modes = kcalloc(dev->mode_config.num_connector, |