Merge tag 'pci-v5.2-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci
[linux-2.6-microblaze.git] / drivers / iommu / amd_iommu.c
index fde16c5..09c9e45 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,