aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2008-07-03 13:35:11 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-04 05:44:44 -0400
commitfb339690a0506d2aca447b5e888fd6ac39ea4fa2 (patch)
treefec0cdf1c64af11557eda7704f80ab4926a222cd /arch
parentc1cbebeec4a6be1c1fb54fbf2395ade2534b03c4 (diff)
x86, AMD IOMMU: remove unnecessary code from the iommu_enable function
This code removes a leftover from the iommu_enable function. The ctrl variable is assigned but never used. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> Cc: iommu@lists.linux-foundation.org Cc: bhavna.sarathy@amd.com Cc: robert.richter@amd.com Cc: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/amd_iommu_init.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/x86/kernel/amd_iommu_init.c b/arch/x86/kernel/amd_iommu_init.c
index c970fac6fdc6..2a13e430437d 100644
--- a/arch/x86/kernel/amd_iommu_init.c
+++ b/arch/x86/kernel/amd_iommu_init.c
@@ -169,14 +169,11 @@ static void __init iommu_feature_disable(struct amd_iommu *iommu, u8 bit)
169 169
170void __init iommu_enable(struct amd_iommu *iommu) 170void __init iommu_enable(struct amd_iommu *iommu)
171{ 171{
172 u32 ctrl;
173
174 printk(KERN_INFO "AMD IOMMU: Enabling IOMMU at "); 172 printk(KERN_INFO "AMD IOMMU: Enabling IOMMU at ");
175 print_devid(iommu->devid, 0); 173 print_devid(iommu->devid, 0);
176 printk(" cap 0x%hx\n", iommu->cap_ptr); 174 printk(" cap 0x%hx\n", iommu->cap_ptr);
177 175
178 iommu_feature_enable(iommu, CONTROL_IOMMU_EN); 176 iommu_feature_enable(iommu, CONTROL_IOMMU_EN);
179 ctrl = readl(iommu->mmio_base + MMIO_CONTROL_OFFSET);
180} 177}
181 178
182static u8 * __init iommu_map_mmio_space(u64 address) 179static u8 * __init iommu_map_mmio_space(u64 address)