summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorAlan Cox <alan@linux.intel.com>2012-07-25 14:49:18 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-07-26 09:47:31 +0200
commitaf447bd358acd92a8e96b61a3bf7a55c61a642f4 (patch)
tree1a1aef815a5502fccff4f45f138c62df171f090a /drivers/gpu
parentdrm/i915: unbreak lastclose for failed driver init (diff)
downloadlinux-af447bd358acd92a8e96b61a3bf7a55c61a642f4.tar.xz
linux-af447bd358acd92a8e96b61a3bf7a55c61a642f4.zip
vlv: it might be wise if we initialised the flag value...
Otherwise our initial behaviour is "randomly save a bogus PLL choice" as far as I can see. Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/i915/intel_display.c1
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 e9e476eca89f..3d969ab2ae3f 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -869,6 +869,7 @@ intel_vlv_find_best_pll(const intel_limit_t *limit, struct drm_crtc *crtc,
unsigned long bestppm, ppm, absppm;
int dotclk, flag;
+ flag = 0;
dotclk = target * 1000;
bestppm = 1000000;
ppm = absppm = 0;