mirror of
https://github.com/torvalds/linux.git
synced 2026-07-30 11:11:26 +02:00
drm/i915/display: move params copy at probe earlier
Copy the parameters earlier to make subsequent changes easier. Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/a0c3e74d824d8a7c02fa1461c3d5518a71171256.1716399081.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
parent
42493f7cb2
commit
54698865ad
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user