summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/nv50_fbcon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-core/nv50_fbcon.c b/linux-core/nv50_fbcon.c
index 80597a76..3dd73062 100644
--- a/linux-core/nv50_fbcon.c
+++ b/linux-core/nv50_fbcon.c
@@ -290,13 +290,13 @@ static int nv50_fbcon_set_par(struct fb_info *info)
if (drm_encoder->crtc) {
list_for_each_entry(drm_crtc, &dev->mode_config.crtc_list, head) {
- crtc_count++;
-
if (drm_crtc == drm_encoder->crtc) {
if (!crtc_used[crtc_count]) /* still available? */
mode_set.crtc = drm_crtc;
break;
}
+
+ crtc_count++;
}
}
}