From e98e6b57dad5f7d072d85595d2138c84859bf5f0 Mon Sep 17 00:00:00 2001 From: Michal Wajdeczko Date: Fri, 4 Sep 2026 19:05:27 +0200 Subject: drm/xe: Drop redundant parameters from xe_info_init_early We can now obtain the const pointers to struct xe_device_desc and xe_subplatform_desc directly from the xe, no need to pass them as explicit parameters. Signed-off-by: Michal Wajdeczko Reviewed-by: Gustavo Sousa Link: https://patch.msgid.link/20260904170531.516-4-michal.wajdeczko@intel.com --- drivers/gpu/drm/xe/tests/xe_pci.c | 2 +- drivers/gpu/drm/xe/xe_pci.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/xe/tests/xe_pci.c b/drivers/gpu/drm/xe/tests/xe_pci.c index a0a08ee5f12b..ca833f1f3cce 100644 --- a/drivers/gpu/drm/xe/tests/xe_pci.c +++ b/drivers/gpu/drm/xe/tests/xe_pci.c @@ -393,7 +393,7 @@ done: if (err) return err; - xe_info_init_early(xe, desc, subplatform_desc, &probed_info); + xe_info_init_early(xe, &probed_info); xe_info_init(xe, &probed_info); return 0; diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c index 4fab47369c64..23edaf886d23 100644 --- a/drivers/gpu/drm/xe/xe_pci.c +++ b/drivers/gpu/drm/xe/xe_pci.c @@ -770,10 +770,10 @@ static int xe_probe_info_early(struct xe_device *xe, * passed to the driver at probe time from PCI ID table. */ static int xe_info_init_early(struct xe_device *xe, - const struct xe_device_desc *desc, - const struct xe_subplatform_desc *subplatform_desc, struct xe_probed_info *probed_info) { + const struct xe_subplatform_desc *subplatform_desc = xe->subplatform_desc; + const struct xe_device_desc *desc = xe->desc; int err; xe->info.devid = probed_info->devid; @@ -1221,7 +1221,7 @@ static int __xe_pci_probe(struct pci_dev *pdev, const struct xe_device_desc *des if (err) return err; - err = xe_info_init_early(xe, desc, subplatform_desc, &probed_info); + err = xe_info_init_early(xe, &probed_info); if (err) return err; -- cgit v1.2.3