From: Heiner Kallweit Date: Wed, 24 Apr 2019 19:15:25 +0000 (+0200) Subject: iommu/amd: Use pci_dev_id() helper X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=775c068c6aae6f1ce16bcb3443998ab40500496c;p=linux.git iommu/amd: Use pci_dev_id() helper Use new helper pci_dev_id() to simplify the code. Signed-off-by: Heiner Kallweit Signed-off-by: Bjorn Helgaas Reviewed-by: Joerg Roedel --- diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c index b319e51c379bd..8e8121b14c365 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,