diff options
-rw-r--r-- | drivers/gpu/drm/drm_fb_helper.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c index 5683b7fdd746..d3f15b9d1d82 100644 --- a/drivers/gpu/drm/drm_fb_helper.c +++ b/drivers/gpu/drm/drm_fb_helper.c | |||
@@ -1353,7 +1353,7 @@ int drm_fb_helper_hotplug_event(struct drm_fb_helper *fb_helper) | |||
1353 | struct drm_device *dev = fb_helper->dev; | 1353 | struct drm_device *dev = fb_helper->dev; |
1354 | int count = 0; | 1354 | int count = 0; |
1355 | u32 max_width, max_height, bpp_sel; | 1355 | u32 max_width, max_height, bpp_sel; |
1356 | bool bound = false, crtcs_bound = false; | 1356 | int bound = 0, crtcs_bound = 0; |
1357 | struct drm_crtc *crtc; | 1357 | struct drm_crtc *crtc; |
1358 | 1358 | ||
1359 | if (!fb_helper->fb) | 1359 | if (!fb_helper->fb) |
@@ -1362,12 +1362,12 @@ int drm_fb_helper_hotplug_event(struct drm_fb_helper *fb_helper) | |||
1362 | mutex_lock(&dev->mode_config.mutex); | 1362 | mutex_lock(&dev->mode_config.mutex); |
1363 | list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { | 1363 | list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { |
1364 | if (crtc->fb) | 1364 | if (crtc->fb) |
1365 | crtcs_bound = true; | 1365 | crtcs_bound++; |
1366 | if (crtc->fb == fb_helper->fb) | 1366 | if (crtc->fb == fb_helper->fb) |
1367 | bound = true; | 1367 | bound++; |
1368 | } | 1368 | } |
1369 | 1369 | ||
1370 | if (!bound && crtcs_bound) { | 1370 | if (bound < crtcs_bound) { |
1371 | fb_helper->delayed_hotplug = true; | 1371 | fb_helper->delayed_hotplug = true; |
1372 | mutex_unlock(&dev->mode_config.mutex); | 1372 | mutex_unlock(&dev->mode_config.mutex); |
1373 | return 0; | 1373 | return 0; |