projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c226f85
)
AMD IOMMU: use calc_devid in prealloc_protection_domains
author
Joerg Roedel
<joerg.roedel@amd.com>
Wed, 10 Dec 2008 19:01:45 +0000
(20:01 +0100)
committer
Joerg Roedel
<joerg.roedel@amd.com>
Sat, 3 Jan 2009 13:11:57 +0000
(14:11 +0100)
Impact: cleanup
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 e410e97e5b0aef0c9f6415f7a12826d69b47fba0..3011ea7a3f82e060d0875d75d88eca2da0183dbd 100644
(file)
--- a/
arch/x86/kernel/amd_iommu.c
+++ b/
arch/x86/kernel/amd_iommu.c
@@
-1543,7
+1543,7
@@
void prealloc_protection_domains(void)
u16 devid;
while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
- devid =
(dev->bus->number << 8) | dev->devfn
;
+ devid =
calc_devid(dev->bus->number, dev->devfn)
;
if (devid > amd_iommu_last_bdf)
continue;
devid = amd_iommu_alias_table[devid];