[Intel-gfx] [PATCH 4/4] drm/i915: Fix compiler warning

Ben Gamari bgamari.foss at gmail.com
Wed Jul 1 21:01:37 CEST 2009


GCC doesn't like passing a structure which hasn't been fully
initialized. Initialize the .vco field to silence the warning.

Signed-off-by: Ben Gamari <bgamari.foss at gmail.com>
---
 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 73e7b9c..866339f 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -813,6 +813,7 @@ intel_find_pll_g4x_dp(const intel_limit_t *limit, struct drm_crtc *crtc,
 		      int target, int refclk, intel_clock_t *best_clock)
 {
     intel_clock_t clock;
+    clock.vco = 0;
     if (target < 200000) {
 	clock.dot = 161670;
 	clock.p = 20;
-- 
1.6.3.3




More information about the Intel-gfx mailing list