diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2019-04-24 21:16:10 +0200 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2019-04-29 16:12:54 -0500 |
commit | cc49baa9a202373b59aad8aca2e5285b9b9eda77 (patch) | |
tree | c824905dc2adf22cce05238a7adb87be87412c74 /drivers/iommu/intel-iommu.c | |
parent | 775c068c6aae6f1ce16bcb3443998ab40500496c (diff) |
iommu/vt-d: 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>
Reviewed-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/intel-iommu.c')
-rw-r--r-- | drivers/iommu/intel-iommu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c index 87274b54febd..a772dedb05b9 100644 --- a/drivers/iommu/intel-iommu.c +++ b/drivers/iommu/intel-iommu.c @@ -1391,7 +1391,7 @@ static void iommu_enable_dev_iotlb(struct device_domain_info *info) /* pdev will be returned if device is not a vf */ pf_pdev = pci_physfn(pdev); - info->pfsid = PCI_DEVID(pf_pdev->bus->number, pf_pdev->devfn); + info->pfsid = pci_dev_id(pf_pdev); } #ifdef CONFIG_INTEL_IOMMU_SVM |