Fix masking in get_load_detect_pipe
authorJesse Barnes <jbarnes@nietzche.virtuousgeek.org>
Thu, 10 Apr 2008 18:27:39 +0000 (11:27 -0700)
committerJesse Barnes <jbarnes@nietzche.virtuousgeek.org>
Thu, 10 Apr 2008 18:27:39 +0000 (11:27 -0700)
Start i at -1 so that the masking works right.

linux-core/intel_display.c

index 13936ee2e669ef52797d82d001c3a1cde520539a..5ca33f7fb1514e2c257db4e133be495a86b6c02c 100644 (file)
@@ -1129,7 +1129,7 @@ struct drm_crtc *intel_get_load_detect_pipe(struct drm_output *output,
        struct drm_crtc *possible_crtc;
        struct drm_crtc *supported_crtc =NULL;
        struct drm_crtc *crtc = NULL;
-       int i = 0;
+       int i = -1;
 
        /*
         * Algorithm gets a little messy: