diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2019-04-24 21:15:25 +0200 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2019-04-29 16:12:47 -0500 |
commit | 775c068c6aae6f1ce16bcb3443998ab40500496c (patch) | |
tree | d4cf8ca65f317f7a68b36f2be42197fc120288ec /drivers/iommu | |
parent | babe2ef342c4829c3875a03a6ecb9716813cbe21 (diff) | |
download | linux-775c068c6aae6f1ce16bcb3443998ab40500496c.tar.bz2 |
iommu/amd: 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')
-rw-r--r-- | drivers/iommu/amd_iommu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c index b319e51c379b..8e8121b14c36 100644 --- a/drivers/iommu/amd_iommu.c +++ b/drivers/iommu/amd_iommu.c @@ -165,7 +165,7 @@ static inline u16 get_pci_device_id(struct device *dev) { struct pci_dev *pdev = to_pci_dev(dev); - return PCI_DEVID(pdev->bus->number, pdev->devfn); + return pci_dev_id(pdev); } static inline int get_acpihid_device_id(struct device *dev, |