summaryrefslogtreecommitdiff
path: root/arch/x86/kernel/amd_iommu.c
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2008-12-10 20:01:45 +0100
committerJoerg Roedel <joerg.roedel@amd.com>2009-01-03 14:11:57 +0100
commitedcb34da259c503a2ffd37e51a658672ba3bc7a2 (patch)
tree18b4ade67c091b286497610f43b826af6c8feab3 /arch/x86/kernel/amd_iommu.c
parentc226f853091577e665ebc02c064af4834d8d4f28 (diff)
downloadlwn-edcb34da259c503a2ffd37e51a658672ba3bc7a2.tar.gz
lwn-edcb34da259c503a2ffd37e51a658672ba3bc7a2.zip
AMD IOMMU: use calc_devid in prealloc_protection_domains
Impact: cleanup Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'arch/x86/kernel/amd_iommu.c')
-rw-r--r--arch/x86/kernel/amd_iommu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/amd_iommu.c b/arch/x86/kernel/amd_iommu.c
index e410e97e5b0a..3011ea7a3f82 100644
--- 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];