[Intel-gfx] [PATCH 7/7] drm/i915: Return boolean status not error code from intel_crtc_mode_fixup()

Chris Wilson chris at chris-wilson.co.uk
Sun Jun 6 16:40:24 CEST 2010


drivers/gpu/drm/i915/intel_display.c|2357 col 11| warning: cast
truncates bits from constant value (f becomes 1)

but the correct error code is 0.

Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
 drivers/gpu/drm/i915/intel_display.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index e620825..8fed027 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -2354,7 +2354,7 @@ static bool intel_crtc_mode_fixup(struct drm_crtc *crtc,
 	if (HAS_PCH_SPLIT(dev)) {
 		/* FDI link clock is fixed at 2.7G */
 		if (mode->clock * 3 > 27000 * 4)
-			return MODE_CLOCK_HIGH;
+			return false;
 	}
 
 	drm_mode_set_crtcinfo(adjusted_mode, 0);
-- 
1.7.1




More information about the Intel-gfx mailing list