]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - arch/x86/kernel/amd_iommu.c
x86/amd-iommu: use for_each_pci_dev
[mv-sheeva.git] / arch / x86 / kernel / amd_iommu.c
index 71dfc0af8e50d28d7c3777dd9dee42230c3f66a5..494956813951cc0d5cb78a67d5745a1174fd3635 100644 (file)
@@ -2187,7 +2187,7 @@ static void prealloc_protection_domains(void)
        struct dma_ops_domain *dma_dom;
        u16 devid;
 
-       while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
+       for_each_pci_dev(dev) {
 
                /* Do we handle this device? */
                if (!check_device(&dev->dev))