drm/i915: shut up spurious message in intel_dp_get_hw_state
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 26 Oct 2012 08:58:11 +0000 (10:58 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 11 Nov 2012 22:50:56 +0000 (23:50 +0100)
The debug message is only relevant on CPT/PPT PCH ports, so move
it into the correct if clause.

Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_dp.c

index 1e9d923be7013a71849b8faee1722e90e0e68020..79a5181f63e3b53391f33231109ab5ace0322553 100644 (file)
@@ -1327,9 +1327,10 @@ static bool intel_dp_get_hw_state(struct intel_encoder *encoder,
                                return true;
                        }
                }
-       }
 
-       DRM_DEBUG_KMS("No pipe for dp port 0x%x found\n", intel_dp->output_reg);
+               DRM_DEBUG_KMS("No pipe for dp port 0x%x found\n",
+                             intel_dp->output_reg);
+       }
 
        return true;
 }