From 88f668a0b91a9961d599c46392f3acbb5573ed9d Mon Sep 17 00:00:00 2001 From: Maarten Maathuis Date: Sun, 6 Jul 2008 11:23:17 +0200 Subject: NV50: fix minor bug in fbcon crtc selection --- linux-core/nv50_fbcon.c | 4 ++-- 1 file 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++; } } } -- cgit v1.2.3