Commit 65655d4a authored by Daniel Vetter's avatar Daniel Vetter Committed by Eric Anholt

drm/i915: modeset: always set intel_crtc->dpms_mode by moving the assignment up.

Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: default avatarEric Anholt <eric@anholt.net>
parent c05422d5
...@@ -1640,6 +1640,8 @@ static void intel_crtc_dpms(struct drm_crtc *crtc, int mode) ...@@ -1640,6 +1640,8 @@ static void intel_crtc_dpms(struct drm_crtc *crtc, int mode)
else else
i9xx_crtc_dpms(crtc, mode); i9xx_crtc_dpms(crtc, mode);
intel_crtc->dpms_mode = mode;
if (!dev->primary->master) if (!dev->primary->master)
return; return;
...@@ -1662,8 +1664,6 @@ static void intel_crtc_dpms(struct drm_crtc *crtc, int mode) ...@@ -1662,8 +1664,6 @@ static void intel_crtc_dpms(struct drm_crtc *crtc, int mode)
DRM_ERROR("Can't update pipe %d in SAREA\n", pipe); DRM_ERROR("Can't update pipe %d in SAREA\n", pipe);
break; break;
} }
intel_crtc->dpms_mode = mode;
} }
static void intel_crtc_prepare (struct drm_crtc *crtc) static void intel_crtc_prepare (struct drm_crtc *crtc)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment