aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/char/drm/i915_drv.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/char/drm/i915_drv.c b/drivers/char/drm/i915_drv.c
index 0f525ad536a4..248e7b1c46a5 100644
--- a/drivers/char/drm/i915_drv.c
+++ b/drivers/char/drm/i915_drv.c
@@ -407,9 +407,7 @@ static int i915_resume(struct drm_device *dev)
407 I915_WRITE(DSPATILEOFF, dev_priv->saveDSPATILEOFF); 407 I915_WRITE(DSPATILEOFF, dev_priv->saveDSPATILEOFF);
408 } 408 }
409 409
410 if ((dev_priv->saveDPLL_A & DPLL_VCO_ENABLE) && 410 I915_WRITE(PIPEACONF, dev_priv->savePIPEACONF);
411 (dev_priv->saveDPLL_A & DPLL_VGA_MODE_DIS))
412 I915_WRITE(PIPEACONF, dev_priv->savePIPEACONF);
413 411
414 i915_restore_palette(dev, PIPE_A); 412 i915_restore_palette(dev, PIPE_A);
415 /* Enable the plane */ 413 /* Enable the plane */
@@ -451,10 +449,9 @@ static int i915_resume(struct drm_device *dev)
451 I915_WRITE(DSPBTILEOFF, dev_priv->saveDSPBTILEOFF); 449 I915_WRITE(DSPBTILEOFF, dev_priv->saveDSPBTILEOFF);
452 } 450 }
453 451
454 if ((dev_priv->saveDPLL_B & DPLL_VCO_ENABLE) && 452 I915_WRITE(PIPEBCONF, dev_priv->savePIPEBCONF);
455 (dev_priv->saveDPLL_B & DPLL_VGA_MODE_DIS)) 453
456 I915_WRITE(PIPEBCONF, dev_priv->savePIPEBCONF); 454 i915_restore_palette(dev, PIPE_B);
457 i915_restore_palette(dev, PIPE_A);
458 /* Enable the plane */ 455 /* Enable the plane */
459 I915_WRITE(DSPBCNTR, dev_priv->saveDSPBCNTR); 456 I915_WRITE(DSPBCNTR, dev_priv->saveDSPBCNTR);
460 I915_WRITE(DSPBBASE, I915_READ(DSPBBASE)); 457 I915_WRITE(DSPBBASE, I915_READ(DSPBBASE));