diff options
author | Kulikov Vasiliy <segooon@gmail.com> | 2010-07-03 12:03:51 -0400 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2010-07-19 15:41:13 +0200 |
commit | 6c54aabd5e687092557f4881ce2d4013b971f293 (patch) | |
tree | 63e67aecbd4b38d26a6455ebbd26b2c4f79557d3 /arch/x86/kernel/amd_iommu.c | |
parent | 1c5474a65bf15a4cb162dfff86d6d0b5a08a740c (diff) | |
download | linux-6c54aabd5e687092557f4881ce2d4013b971f293.tar.gz linux-6c54aabd5e687092557f4881ce2d4013b971f293.tar.bz2 linux-6c54aabd5e687092557f4881ce2d4013b971f293.zip |
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.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) pt_domain->mode |= PAGE_MODE_NONE; - while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) { - + for_each_pci_dev(dev) { if (!check_device(&dev->dev)) continue; |