diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2019-04-24 21:14:55 +0200 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2019-04-29 23:12:35 +0200 |
commit | babe2ef342c4829c3875a03a6ecb9716813cbe21 (patch) | |
tree | 76bc46bced3b020329dc487e3196f42e4727b2a4 /drivers/gpu/drm/amd | |
parent | powerpc/powernv/npu: Use pci_dev_id() helper (diff) | |
download | linux-babe2ef342c4829c3875a03a6ecb9716813cbe21.tar.xz linux-babe2ef342c4829c3875a03a6ecb9716813cbe21.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/amd')
-rw-r--r-- | drivers/gpu/drm/amd/amdkfd/kfd_topology.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_topology.c b/drivers/gpu/drm/amd/amdkfd/kfd_topology.c index 09da91644f9f..b0c59a313049 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_topology.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_topology.c @@ -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 = |