Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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

parent c05422d5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1640,6 +1640,8 @@ static void intel_crtc_dpms(struct drm_crtc *crtc, int mode)
	else
		i9xx_crtc_dpms(crtc, mode);

	intel_crtc->dpms_mode = mode;

	if (!dev->primary->master)
		return;

@@ -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);
		break;
	}

	intel_crtc->dpms_mode = mode;
}

static void intel_crtc_prepare (struct drm_crtc *crtc)