diff options
Diffstat (limited to 'drivers/gpu/drm/i915/intel_lvds.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_lvds.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/intel_lvds.c b/drivers/gpu/drm/i915/intel_lvds.c index 3eec52a0b8e..cd089607eb8 100644 --- a/drivers/gpu/drm/i915/intel_lvds.c +++ b/drivers/gpu/drm/i915/intel_lvds.c | |||
@@ -231,6 +231,7 @@ static bool intel_lvds_mode_fixup(struct drm_encoder *encoder, | |||
231 | struct intel_lvds *intel_lvds = to_intel_lvds(encoder); | 231 | struct intel_lvds *intel_lvds = to_intel_lvds(encoder); |
232 | struct drm_encoder *tmp_encoder; | 232 | struct drm_encoder *tmp_encoder; |
233 | u32 pfit_control = 0, pfit_pgm_ratios = 0, border = 0; | 233 | u32 pfit_control = 0, pfit_pgm_ratios = 0, border = 0; |
234 | int pipe; | ||
234 | 235 | ||
235 | /* Should never happen!! */ | 236 | /* Should never happen!! */ |
236 | if (INTEL_INFO(dev)->gen < 4 && intel_crtc->pipe == 0) { | 237 | if (INTEL_INFO(dev)->gen < 4 && intel_crtc->pipe == 0) { |
@@ -283,8 +284,8 @@ static bool intel_lvds_mode_fixup(struct drm_encoder *encoder, | |||
283 | * to register description and PRM. | 284 | * to register description and PRM. |
284 | * Change the value here to see the borders for debugging | 285 | * Change the value here to see the borders for debugging |
285 | */ | 286 | */ |
286 | I915_WRITE(BCLRPAT_A, 0); | 287 | for_each_pipe(pipe) |
287 | I915_WRITE(BCLRPAT_B, 0); | 288 | I915_WRITE(BCLRPAT(pipe), 0); |
288 | 289 | ||
289 | switch (intel_lvds->fitting_mode) { | 290 | switch (intel_lvds->fitting_mode) { |
290 | case DRM_MODE_SCALE_CENTER: | 291 | case DRM_MODE_SCALE_CENTER: |