intel: if no spare crtc exists don't just take one.
authorDave Airlie <airlied@linux.ie>
Fri, 6 Jun 2008 00:31:36 +0000 (10:31 +1000)
committerDave Airlie <airlied@linux.ie>
Fri, 6 Jun 2008 00:31:36 +0000 (10:31 +1000)
linux-core/intel_display.c

index e1d9d4d..e2d2a5f 100644 (file)
@@ -1167,13 +1167,10 @@ struct drm_crtc *intel_get_load_detect_pipe(struct intel_output *intel_output,
        }
 
        /*
-        * If we didn't find an unused CRTC, use the first available one
-        * that can drive this connector.
+        * If we didn't find an unused CRTC, don't use any.
         */
        if (!crtc) {
-               crtc = supported_crtc;
-               if (!crtc)
-                       return NULL;
+               return NULL;
        }
 
        encoder->crtc = crtc;