summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorChris Wright <chrisw@sous-sol.org>2010-04-02 18:27:55 -0700
committerJoerg Roedel <joerg.roedel@amd.com>2010-04-07 11:51:34 +0200
commitd18c69d3898985c66cd6e878b8f576fd9a21ab39 (patch)
tree55b21ebfa5bff926c0c0cea83d074895e41bc1fa /arch
parent8f9f55e83e939724490d7cde3833c4883c6d1310 (diff)
downloadblackbird-op-linux-d18c69d3898985c66cd6e878b8f576fd9a21ab39.tar.gz
blackbird-op-linux-d18c69d3898985c66cd6e878b8f576fd9a21ab39.zip
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)
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))
OpenPOWER on IntegriCloud