summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/xe/tests/xe_pci.c2
-rw-r--r--drivers/gpu/drm/xe/xe_pci.c6
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;