From: Jesse Barnes Date: Tue, 2 Apr 2013 17:03:56 +0000 (-0700) Subject: drm/i915: fix DP get_hw_state return value X-Git-Tag: next-20130404~65^2~22 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=deb18211a110c102d32b3e9ed866bd7d25e0f8d5;p=karo-tx-linux.git drm/i915: fix DP 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_dp.c b/drivers/gpu/drm/i915/intel_dp.c index 92a7c62c8aec..879aff26ca12 100644 --- a/drivers/gpu/drm/i915/intel_dp.c +++ b/drivers/gpu/drm/i915/intel_dp.c @@ -1361,7 +1361,7 @@ static bool intel_dp_get_hw_state(struct intel_encoder *encoder, intel_dp->output_reg); } - return true; + return false; } static void intel_disable_dp(struct intel_encoder *encoder)