aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/amd_iommu.c
diff options
context:
space:
mode:
authorKulikov Vasiliy <segooon@gmail.com>2010-07-03 12:03:51 -0400
committerJoerg Roedel <joerg.roedel@amd.com>2010-07-19 09:41:13 -0400
commit6c54aabd5e687092557f4881ce2d4013b971f293 (patch)
tree63e67aecbd4b38d26a6455ebbd26b2c4f79557d3 /arch/x86/kernel/amd_iommu.c
parent1c5474a65bf15a4cb162dfff86d6d0b5a08a740c (diff)
x86/amd-iommu: Use for_each_pci_dev()
Use for_each_pci_dev() to simplify the code. Signed-off-by: Kulikov Vasiliy <segooon@gmail.com> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'arch/x86/kernel/amd_iommu.c')
-rw-r--r--arch/x86/kernel/amd_iommu.c3
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