Skip to content
Snippets Groups Projects
Commit d18c69d3 authored by Chris Wright's avatar Chris Wright Committed by Joerg Roedel
Browse files

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
No related branches found
No related tags found
No related merge requests found
...@@ -2187,7 +2187,7 @@ static void prealloc_protection_domains(void) ...@@ -2187,7 +2187,7 @@ static void prealloc_protection_domains(void)
struct dma_ops_domain *dma_dom; struct dma_ops_domain *dma_dom;
u16 devid; 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? */ /* Do we handle this device? */
if (!check_device(&dev->dev)) if (!check_device(&dev->dev))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment