summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Wajdeczko <michal.wajdeczko@intel.com>2026-09-04 19:05:28 +0200
committerMichal Wajdeczko <michal.wajdeczko@intel.com>2026-09-11 19:52:11 +0200
commit31aa5fdb01c8e0ceb6a0ba84dde589b1db9b40b2 (patch)
tree63dda051dce6a69f9f37135fe80e37e4283263e3
parente98e6b57dad5f7d072d85595d2138c84859bf5f0 (diff)
downloadlinux-next-31aa5fdb01c8e0ceb6a0ba84dde589b1db9b40b2.tar.gz
linux-next-31aa5fdb01c8e0ceb6a0ba84dde589b1db9b40b2.zip
drm/xe: Drop redundant parameter from xe_probe_info_early
We can now obtain the const pointer to struct xe_device_desc directly from the xe, no need to pass it as explicit parameter. Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com> Link: https://patch.msgid.link/20260904170531.516-5-michal.wajdeczko@intel.com
-rw-r--r--drivers/gpu/drm/xe/xe_pci.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c
index 23edaf886d23..b429cd9c48a7 100644
--- a/drivers/gpu/drm/xe/xe_pci.c
+++ b/drivers/gpu/drm/xe/xe_pci.c
@@ -752,7 +752,6 @@ struct xe_probed_info {
* Probe from the hardware the info required by xe_info_init_early().
*/
static int xe_probe_info_early(struct xe_device *xe,
- const struct xe_device_desc *desc,
struct xe_probed_info *probed_info)
{
struct pci_dev *pdev = to_pci_dev(xe->drm.dev);
@@ -760,7 +759,7 @@ static int xe_probe_info_early(struct xe_device *xe,
probed_info->devid = pdev->device;
probed_info->revid = pdev->revision;
- xe_step_platform_get(desc->platform, probed_info->revid, &probed_info->step);
+ xe_step_platform_get(xe->desc->platform, probed_info->revid, &probed_info->step);
return 0;
}
@@ -1217,7 +1216,7 @@ static int __xe_pci_probe(struct pci_dev *pdev, const struct xe_device_desc *des
pci_set_master(pdev);
- err = xe_probe_info_early(xe, desc, &probed_info);
+ err = xe_probe_info_early(xe, &probed_info);
if (err)
return err;