diff options
Diffstat (limited to 'drivers/gpu/drm/i915/intel_sdvo.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_sdvo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/intel_sdvo.c b/drivers/gpu/drm/i915/intel_sdvo.c index ba058e600ce7..7cd2d9592d65 100644 --- a/drivers/gpu/drm/i915/intel_sdvo.c +++ b/drivers/gpu/drm/i915/intel_sdvo.c | |||
@@ -1162,7 +1162,7 @@ static void intel_sdvo_mode_set(struct drm_encoder *encoder, | |||
1162 | return; | 1162 | return; |
1163 | 1163 | ||
1164 | /* Set the SDVO control regs. */ | 1164 | /* Set the SDVO control regs. */ |
1165 | if (IS_I965G(dev)) { | 1165 | if (INTEL_INFO(dev)->gen >= 4) { |
1166 | sdvox = SDVO_BORDER_ENABLE; | 1166 | sdvox = SDVO_BORDER_ENABLE; |
1167 | if (adjusted_mode->flags & DRM_MODE_FLAG_PVSYNC) | 1167 | if (adjusted_mode->flags & DRM_MODE_FLAG_PVSYNC) |
1168 | sdvox |= SDVO_VSYNC_ACTIVE_HIGH; | 1168 | sdvox |= SDVO_VSYNC_ACTIVE_HIGH; |
@@ -1185,7 +1185,7 @@ static void intel_sdvo_mode_set(struct drm_encoder *encoder, | |||
1185 | if (intel_sdvo->is_hdmi) | 1185 | if (intel_sdvo->is_hdmi) |
1186 | sdvox |= SDVO_AUDIO_ENABLE; | 1186 | sdvox |= SDVO_AUDIO_ENABLE; |
1187 | 1187 | ||
1188 | if (IS_I965G(dev)) { | 1188 | if (INTEL_INFO(dev)->gen >= 4) { |
1189 | /* done in crtc_mode_set as the dpll_md reg must be written early */ | 1189 | /* done in crtc_mode_set as the dpll_md reg must be written early */ |
1190 | } else if (IS_I945G(dev) || IS_I945GM(dev) || IS_G33(dev)) { | 1190 | } else if (IS_I945G(dev) || IS_I945GM(dev) || IS_G33(dev)) { |
1191 | /* done in crtc_mode_set as it lives inside the dpll register */ | 1191 | /* done in crtc_mode_set as it lives inside the dpll register */ |