diff options
author | Chris Wright <chrisw@sous-sol.org> | 2010-04-02 18:27:55 -0700 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2010-04-07 11:51:34 +0200 |
commit | d18c69d3898985c66cd6e878b8f576fd9a21ab39 (patch) | |
tree | 55b21ebfa5bff926c0c0cea83d074895e41bc1fa /arch/x86/kernel/amd_iommu.c | |
parent | 8f9f55e83e939724490d7cde3833c4883c6d1310 (diff) | |
download | op-kernel-dev-d18c69d3898985c66cd6e878b8f576fd9a21ab39.zip op-kernel-dev-d18c69d3898985c66cd6e878b8f576fd9a21ab39.tar.gz |
x86/amd-iommu: use for_each_pci_dev
Replace open coded version with for_each_pci_dev
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
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 | 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 71dfc0a..4949568 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) 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)) |