NV50: fix minor bug in fbcon crtc selection
authorMaarten Maathuis <madman2003@gmail.com>
Sun, 6 Jul 2008 09:23:17 +0000 (11:23 +0200)
committerMaarten Maathuis <madman2003@gmail.com>
Sun, 6 Jul 2008 09:23:17 +0000 (11:23 +0200)
linux-core/nv50_fbcon.c

index 80597a7..3dd7306 100644 (file)
@@ -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++;
                                }
                        }
                }