aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorChris Wright <chrisw@sous-sol.org>2010-04-02 21:27:55 -0400
committerJoerg Roedel <joerg.roedel@amd.com>2010-04-07 05:51:34 -0400
commitd18c69d3898985c66cd6e878b8f576fd9a21ab39 (patch)
tree55b21ebfa5bff926c0c0cea83d074895e41bc1fa /arch
parent8f9f55e83e939724490d7cde3833c4883c6d1310 (diff)
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')
-rw-r--r--arch/x86/kernel/amd_iommu.c2
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))