[Intel-gfx] [PATCH] drm/i915: kill warning

Jesse Barnes jbarnes at virtuousgeek.org
Tue Oct 20 00:55:28 CEST 2009


This one has been bugging me.

--

From 228f4070022ed2b93dd0308847edb5b9f769d47f Mon Sep 17 00:00:00 2001
From: Jesse Barnes <jbarnes at jbarnes-x200.(none)>
Date: Tue, 20 Oct 2009 07:53:46 +0900
Subject: [PATCH] drm/i915: kill warning in intel_find_pll_g4x_dp

Initialize clock.vco to silence gcc.

Signed-off-by: Jesse Barnes <jbarnes at virtuousgeek.org>
---
 drivers/gpu/drm/i915/intel_display.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index dc0b94c..298d317 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -943,6 +943,7 @@ intel_find_pll_g4x_dp(const intel_limit_t *limit, struct drm_crtc *crtc,
     clock.m = 5 * (clock.m1 + 2) + (clock.m2 + 2);
     clock.p = (clock.p1 * clock.p2);
     clock.dot = 96000 * clock.m / (clock.n + 2) / clock.p;
+    clock.vco = 0;
     memcpy(best_clock, &clock, sizeof(intel_clock_t));
     return true;
 }
-- 
1.6.3.3




More information about the Intel-gfx mailing list