diff options
-rw-r--r-- | arch/x86/kernel/amd_iommu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/amd_iommu.c b/arch/x86/kernel/amd_iommu.c index 71dfc0af8e50..494956813951 100644 --- a/arch/x86/kernel/amd_iommu.c +++ b/arch/x86/kernel/amd_iommu.c | |||
@@ -2187,7 +2187,7 @@ static void prealloc_protection_domains(void) | |||
2187 | struct dma_ops_domain *dma_dom; | 2187 | struct dma_ops_domain *dma_dom; |
2188 | u16 devid; | 2188 | u16 devid; |
2189 | 2189 | ||
2190 | while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) { | 2190 | for_each_pci_dev(dev) { |
2191 | 2191 | ||
2192 | /* Do we handle this device? */ | 2192 | /* Do we handle this device? */ |
2193 | if (!check_device(&dev->dev)) | 2193 | if (!check_device(&dev->dev)) |