]> git.ipfire.org Git - thirdparty/kernel/stable.git/blobdiff - drivers/iommu/amd_iommu.c
Merge tag 'pci-v5.2-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci
[thirdparty/kernel/stable.git] / drivers / iommu / amd_iommu.c
index fde16c5b0a70162f3c2067d16a717e45d34d051c..09c9e45f7fa2ec99751f752f4ff6fe30ccd7dfeb 100644 (file)
@@ -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,