aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_dvo.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/i915/intel_dvo.c')
-rw-r--r--drivers/gpu/drm/i915/intel_dvo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/intel_dvo.c b/drivers/gpu/drm/i915/intel_dvo.c
index cd574900cd8d..708645443046 100644
--- a/drivers/gpu/drm/i915/intel_dvo.c
+++ b/drivers/gpu/drm/i915/intel_dvo.c
@@ -393,12 +393,12 @@ intel_dvo_get_current_mode(struct drm_connector *connector)
393 * its timings to get how the BIOS set up the panel. 393 * its timings to get how the BIOS set up the panel.
394 */ 394 */
395 if (dvo_val & DVO_ENABLE) { 395 if (dvo_val & DVO_ENABLE) {
396 struct drm_crtc *crtc; 396 struct intel_crtc *crtc;
397 int pipe = (dvo_val & DVO_PIPE_B_SELECT) ? 1 : 0; 397 int pipe = (dvo_val & DVO_PIPE_B_SELECT) ? 1 : 0;
398 398
399 crtc = intel_get_crtc_for_pipe(dev, pipe); 399 crtc = intel_get_crtc_for_pipe(dev_priv, pipe);
400 if (crtc) { 400 if (crtc) {
401 mode = intel_crtc_mode_get(dev, crtc); 401 mode = intel_crtc_mode_get(dev, &crtc->base);
402 if (mode) { 402 if (mode) {
403 mode->type |= DRM_MODE_TYPE_PREFERRED; 403 mode->type |= DRM_MODE_TYPE_PREFERRED;
404 if (dvo_val & DVO_HSYNC_ACTIVE_HIGH) 404 if (dvo_val & DVO_HSYNC_ACTIVE_HIGH)