aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/amd_iommu.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/amd_iommu.c')
-rw-r--r--arch/x86/kernel/amd_iommu.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/x86/kernel/amd_iommu.c b/arch/x86/kernel/amd_iommu.c
index 4478a48198a8..751ce73c6e1b 100644
--- a/arch/x86/kernel/amd_iommu.c
+++ b/arch/x86/kernel/amd_iommu.c
@@ -2221,6 +2221,12 @@ static struct dma_map_ops amd_iommu_dma_ops = {
2221/* 2221/*
2222 * The function which clues the AMD IOMMU driver into dma_ops. 2222 * The function which clues the AMD IOMMU driver into dma_ops.
2223 */ 2223 */
2224
2225void __init amd_iommu_init_api(void)
2226{
2227 register_iommu(&amd_iommu_ops);
2228}
2229
2224int __init amd_iommu_init_dma_ops(void) 2230int __init amd_iommu_init_dma_ops(void)
2225{ 2231{
2226 struct amd_iommu *iommu; 2232 struct amd_iommu *iommu;
@@ -2256,8 +2262,6 @@ int __init amd_iommu_init_dma_ops(void)
2256 /* Make the driver finally visible to the drivers */ 2262 /* Make the driver finally visible to the drivers */
2257 dma_ops = &amd_iommu_dma_ops; 2263 dma_ops = &amd_iommu_dma_ops;
2258 2264
2259 register_iommu(&amd_iommu_ops);
2260
2261 amd_iommu_stats_init(); 2265 amd_iommu_stats_init();
2262 2266
2263 return 0; 2267 return 0;