projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f9f55e
)
x86/amd-iommu: use for_each_pci_dev
author
Chris Wright
<chrisw@sous-sol.org>
Sat, 3 Apr 2010 01:27:55 +0000
(18:27 -0700)
committer
Joerg Roedel
<joerg.roedel@amd.com>
Wed, 7 Apr 2010 09:51:34 +0000
(11:51 +0200)
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>
arch/x86/kernel/amd_iommu.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kernel/amd_iommu.c
b/arch/x86/kernel/amd_iommu.c
index 71dfc0af8e50d28d7c3777dd9dee42230c3f66a5..494956813951cc0d5cb78a67d5745a1174fd3635 100644
(file)
--- 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))