diff options
Diffstat (limited to 'arch/x86/kernel/pci-swiotlb.c')
-rw-r--r-- | arch/x86/kernel/pci-swiotlb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/kernel/pci-swiotlb.c b/arch/x86/kernel/pci-swiotlb.c index 53bd05ea90d8..0ee0f8f34251 100644 --- a/arch/x86/kernel/pci-swiotlb.c +++ b/arch/x86/kernel/pci-swiotlb.c | |||
@@ -6,7 +6,7 @@ | |||
6 | #include <linux/init.h> | 6 | #include <linux/init.h> |
7 | #include <linux/swiotlb.h> | 7 | #include <linux/swiotlb.h> |
8 | #include <linux/bootmem.h> | 8 | #include <linux/bootmem.h> |
9 | #include <linux/dma-mapping.h> | 9 | #include <linux/dma-direct.h> |
10 | #include <linux/mem_encrypt.h> | 10 | #include <linux/mem_encrypt.h> |
11 | 11 | ||
12 | #include <asm/iommu.h> | 12 | #include <asm/iommu.h> |
@@ -48,7 +48,7 @@ void x86_swiotlb_free_coherent(struct device *dev, size_t size, | |||
48 | dma_generic_free_coherent(dev, size, vaddr, dma_addr, attrs); | 48 | dma_generic_free_coherent(dev, size, vaddr, dma_addr, attrs); |
49 | } | 49 | } |
50 | 50 | ||
51 | static const struct dma_map_ops swiotlb_dma_ops = { | 51 | static const struct dma_map_ops x86_swiotlb_dma_ops = { |
52 | .mapping_error = swiotlb_dma_mapping_error, | 52 | .mapping_error = swiotlb_dma_mapping_error, |
53 | .alloc = x86_swiotlb_alloc_coherent, | 53 | .alloc = x86_swiotlb_alloc_coherent, |
54 | .free = x86_swiotlb_free_coherent, | 54 | .free = x86_swiotlb_free_coherent, |
@@ -112,7 +112,7 @@ void __init pci_swiotlb_init(void) | |||
112 | { | 112 | { |
113 | if (swiotlb) { | 113 | if (swiotlb) { |
114 | swiotlb_init(0); | 114 | swiotlb_init(0); |
115 | dma_ops = &swiotlb_dma_ops; | 115 | dma_ops = &x86_swiotlb_dma_ops; |
116 | } | 116 | } |
117 | } | 117 | } |
118 | 118 | ||
@@ -120,7 +120,7 @@ void __init pci_swiotlb_late_init(void) | |||
120 | { | 120 | { |
121 | /* An IOMMU turned us off. */ | 121 | /* An IOMMU turned us off. */ |
122 | if (!swiotlb) | 122 | if (!swiotlb) |
123 | swiotlb_free(); | 123 | swiotlb_exit(); |
124 | else { | 124 | else { |
125 | printk(KERN_INFO "PCI-DMA: " | 125 | printk(KERN_INFO "PCI-DMA: " |
126 | "Using software bounce buffering for IO (SWIOTLB)\n"); | 126 | "Using software bounce buffering for IO (SWIOTLB)\n"); |