diff options
-rw-r--r-- | arch/x86/kernel/amd_iommu.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/kernel/amd_iommu.c b/arch/x86/kernel/amd_iommu.c index 0d20286d78c6..29dd3b9f2f09 100644 --- a/arch/x86/kernel/amd_iommu.c +++ b/arch/x86/kernel/amd_iommu.c | |||
@@ -2609,8 +2609,7 @@ int __init amd_iommu_init_passthrough(void) | |||
2609 | 2609 | ||
2610 | pt_domain->mode |= PAGE_MODE_NONE; | 2610 | pt_domain->mode |= PAGE_MODE_NONE; |
2611 | 2611 | ||
2612 | while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) { | 2612 | for_each_pci_dev(dev) { |
2613 | |||
2614 | if (!check_device(&dev->dev)) | 2613 | if (!check_device(&dev->dev)) |
2615 | continue; | 2614 | continue; |
2616 | 2615 | ||