Commit d18c69d3 authored by Chris Wright's avatar Chris Wright Committed by Joerg Roedel

x86/amd-iommu: use for_each_pci_dev

Replace open coded version with for_each_pci_dev
Signed-off-by: default avatarChris Wright <chrisw@sous-sol.org>
Signed-off-by: default avatarJoerg Roedel <joerg.roedel@amd.com>
parent 8f9f55e8
......@@ -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))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment