mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-17 03:48:11 +07:00
drm/amdkfd: Use pci_dev_id() helper
Use new helper pci_dev_id() to simplify the code. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Christian König <christian.koenig@amd.com>
This commit is contained in:
parent
51c51a48de
commit
babe2ef342
@ -1270,8 +1270,7 @@ int kfd_topology_add_device(struct kfd_dev *gpu)
|
||||
|
||||
dev->node_props.vendor_id = gpu->pdev->vendor;
|
||||
dev->node_props.device_id = gpu->pdev->device;
|
||||
dev->node_props.location_id = PCI_DEVID(gpu->pdev->bus->number,
|
||||
gpu->pdev->devfn);
|
||||
dev->node_props.location_id = pci_dev_id(gpu->pdev);
|
||||
dev->node_props.max_engine_clk_fcompute =
|
||||
amdgpu_amdkfd_get_max_engine_clock_in_mhz(dev->gpu->kgd);
|
||||
dev->node_props.max_engine_clk_ccompute =
|
||||
|
Loading…
Reference in New Issue
Block a user