[PATCH 12/13] drm/i915: fix DP get_hw_state return value

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Apr 02, 2013 at 10:03:56AM -0700, Jesse Barnes wrote:
> 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 <jbarnes at virtuousgeek.org>

These two fixes are merged for -next, thanks.
-Daniel

> ---
>  drivers/gpu/drm/i915/intel_dp.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
> index e1b0c94..720ff50 100644
> --- a/drivers/gpu/drm/i915/intel_dp.c
> +++ b/drivers/gpu/drm/i915/intel_dp.c
> @@ -1366,7 +1366,7 @@ static bool intel_dp_get_hw_state(struct intel_encoder *encoder,
>  			      intel_dp->output_reg);
>  	}
>  
> -	return true;
> +	return false;
>  }
>  
>  static unsigned intel_dp_get_mode_flags(struct intel_encoder *encoder)
> -- 
> 1.7.9.5
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx

-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux