Commit eba10ec8 authored by Ville Syrjälä's avatar Ville Syrjälä
Browse files

drm/i915: Don't hide the intel_crtc_atomic_check() call



Move the intel_crtc_atomic_check() call out from the variable
declarations to a place where we can actually see it.

Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200925121749.708-2-ville.syrjala@linux.intel.com


Reviewed-by: default avatarJosé Roberto de Souza <jose.souza@intel.com>
parent 7102404c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -14899,8 +14899,10 @@ static int intel_atomic_check_crtcs(struct intel_atomic_state *state)
	int i;
	for_each_new_intel_crtc_in_state(state, crtc, crtc_state, i) {
		int ret = intel_crtc_atomic_check(state, crtc);
		struct drm_i915_private *i915 = to_i915(crtc->base.dev);
		int ret;
		ret = intel_crtc_atomic_check(state, crtc);
		if (ret) {
			drm_dbg_atomic(&i915->drm,
				       "[CRTC:%d:%s] atomic driver check failed\n",