aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kernel/pci-dma.c4
-rw-r--r--arch/x86/kernel/pci-swiotlb.c3
2 files changed, 2 insertions, 5 deletions
diff --git a/arch/x86/kernel/pci-dma.c b/arch/x86/kernel/pci-dma.c
index 0b11bf18f54..f170b5364b4 100644
--- a/arch/x86/kernel/pci-dma.c
+++ b/arch/x86/kernel/pci-dma.c
@@ -15,7 +15,7 @@
15 15
16static int forbid_dac __read_mostly; 16static int forbid_dac __read_mostly;
17 17
18struct dma_map_ops *dma_ops; 18struct dma_map_ops *dma_ops = &nommu_dma_ops;
19EXPORT_SYMBOL(dma_ops); 19EXPORT_SYMBOL(dma_ops);
20 20
21static int iommu_sac_force __read_mostly; 21static int iommu_sac_force __read_mostly;
@@ -128,8 +128,6 @@ void __init pci_iommu_alloc(void)
128#ifdef CONFIG_X86_64 128#ifdef CONFIG_X86_64
129 /* free the range so iommu could get some range less than 4G */ 129 /* free the range so iommu could get some range less than 4G */
130 dma32_free_bootmem(); 130 dma32_free_bootmem();
131#else
132 dma_ops = &nommu_dma_ops;
133#endif 131#endif
134 if (pci_swiotlb_init()) 132 if (pci_swiotlb_init())
135 return; 133 return;
diff --git a/arch/x86/kernel/pci-swiotlb.c b/arch/x86/kernel/pci-swiotlb.c
index a6e5d0ffa3a..e36e71daa44 100644
--- a/arch/x86/kernel/pci-swiotlb.c
+++ b/arch/x86/kernel/pci-swiotlb.c
@@ -61,8 +61,7 @@ int __init pci_swiotlb_init(void)
61 if (swiotlb) { 61 if (swiotlb) {
62 swiotlb_init(0); 62 swiotlb_init(0);
63 dma_ops = &swiotlb_dma_ops; 63 dma_ops = &swiotlb_dma_ops;
64 } else 64 }
65 dma_ops = &nommu_dma_ops;
66 65
67 return swiotlb_force; 66 return swiotlb_force;
68} 67}