Skip to content

Commit

Permalink
x86/amd-iommu: use for_each_pci_dev
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chris Wright authored and Joerg Roedel committed Apr 7, 2010
1 parent 8f9f55e commit d18c69d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/amd_iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit d18c69d

Please sign in to comment.