From: Jesse Barnes Date: Tue, 2 Apr 2013 17:03:55 +0000 (-0700) Subject: drm/i915: fix DDI get_hw_state return value X-Git-Tag: v3.10-rc2~14^2~71^2~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=22f9fe50597094970a9bcdf2464fc3b356fbedb6;p=platform%2Fupstream%2Fkernel-adaptation-pc.git drm/i915: fix DDI get_hw_state return value If we couldn't find a pipe we shouldn't return true. This might be even better as a WARN though, since it should be impossible to have the port enabled without a pipe selected. Signed-off-by: Jesse Barnes Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c index 6c6b012..22524cb 100644 --- a/drivers/gpu/drm/i915/intel_ddi.c +++ b/drivers/gpu/drm/i915/intel_ddi.c @@ -1150,7 +1150,7 @@ bool intel_ddi_get_hw_state(struct intel_encoder *encoder, DRM_DEBUG_KMS("No pipe for ddi port %i found\n", port); - return true; + return false; } static uint32_t intel_ddi_get_crtc_pll(struct drm_i915_private *dev_priv,