Commit 54698865 authored by Jani Nikula's avatar Jani Nikula

drm/i915/display: move params copy at probe earlier

Copy the parameters earlier to make subsequent changes easier.
Reviewed-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/a0c3e74d824d8a7c02fa1461c3d5518a71171256.1716399081.git.jani.nikula@intel.comSigned-off-by: default avatarJani Nikula <jani.nikula@intel.com>
parent 42493f7c
......@@ -936,6 +936,8 @@ void intel_display_device_probe(struct drm_i915_private *i915)
/* Add drm device backpointer as early as possible. */
i915->display.drm = &i915->drm;
intel_display_params_copy(&i915->display.params);
if (HAS_GMD_ID(i915))
info = probe_gmdid_display(i915, &ver, &rel, &step);
else
......@@ -952,8 +954,6 @@ void intel_display_device_probe(struct drm_i915_private *i915)
DISPLAY_RUNTIME_INFO(i915)->ip.rel = rel;
DISPLAY_RUNTIME_INFO(i915)->ip.step = step;
}
intel_display_params_copy(&i915->display.params);
}
void intel_display_device_remove(struct drm_i915_private *i915)
......
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