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>
This commit is contained in:
Chris Wright 2010-04-02 18:27:55 -07:00 committed by Joerg Roedel
parent 8f9f55e83e
commit d18c69d389
1 changed files with 1 additions and 1 deletions

View File

@ -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))