summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaarten Maathuis <madman2003@gmail.com>2008-07-06 11:23:17 +0200
committerMaarten Maathuis <madman2003@gmail.com>2008-07-06 11:23:17 +0200
commit88f668a0b91a9961d599c46392f3acbb5573ed9d (patch)
treefaaa11540d99b4a7239a55e64fa96d425012c445
parent6738e7b00bf05529303ed690873495db6d83337c (diff)
NV50: fix minor bug in fbcon crtc selection
-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++;
}
}
}