diff options
Diffstat (limited to 'arch/arm64')
-rw-r--r-- | arch/arm64/mm/dma-mapping.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/arch/arm64/mm/dma-mapping.c b/arch/arm64/mm/dma-mapping.c index fbd76785c5db..985fc075c0f3 100644 --- a/arch/arm64/mm/dma-mapping.c +++ b/arch/arm64/mm/dma-mapping.c | |||
@@ -30,9 +30,9 @@ | |||
30 | struct dma_map_ops *dma_ops; | 30 | struct dma_map_ops *dma_ops; |
31 | EXPORT_SYMBOL(dma_ops); | 31 | EXPORT_SYMBOL(dma_ops); |
32 | 32 | ||
33 | static void *arm64_swiotlb_alloc_coherent(struct device *dev, size_t size, | 33 | static void *__dma_alloc_coherent(struct device *dev, size_t size, |
34 | dma_addr_t *dma_handle, gfp_t flags, | 34 | dma_addr_t *dma_handle, gfp_t flags, |
35 | struct dma_attrs *attrs) | 35 | struct dma_attrs *attrs) |
36 | { | 36 | { |
37 | if (dev == NULL) { | 37 | if (dev == NULL) { |
38 | WARN_ONCE(1, "Use an actual device structure for DMA allocation\n"); | 38 | WARN_ONCE(1, "Use an actual device structure for DMA allocation\n"); |
@@ -58,9 +58,9 @@ static void *arm64_swiotlb_alloc_coherent(struct device *dev, size_t size, | |||
58 | } | 58 | } |
59 | } | 59 | } |
60 | 60 | ||
61 | static void arm64_swiotlb_free_coherent(struct device *dev, size_t size, | 61 | static void __dma_free_coherent(struct device *dev, size_t size, |
62 | void *vaddr, dma_addr_t dma_handle, | 62 | void *vaddr, dma_addr_t dma_handle, |
63 | struct dma_attrs *attrs) | 63 | struct dma_attrs *attrs) |
64 | { | 64 | { |
65 | if (dev == NULL) { | 65 | if (dev == NULL) { |
66 | WARN_ONCE(1, "Use an actual device structure for DMA allocation\n"); | 66 | WARN_ONCE(1, "Use an actual device structure for DMA allocation\n"); |
@@ -78,9 +78,9 @@ static void arm64_swiotlb_free_coherent(struct device *dev, size_t size, | |||
78 | } | 78 | } |
79 | } | 79 | } |
80 | 80 | ||
81 | static struct dma_map_ops arm64_swiotlb_dma_ops = { | 81 | static struct dma_map_ops coherent_swiotlb_dma_ops = { |
82 | .alloc = arm64_swiotlb_alloc_coherent, | 82 | .alloc = __dma_alloc_coherent, |
83 | .free = arm64_swiotlb_free_coherent, | 83 | .free = __dma_free_coherent, |
84 | .map_page = swiotlb_map_page, | 84 | .map_page = swiotlb_map_page, |
85 | .unmap_page = swiotlb_unmap_page, | 85 | .unmap_page = swiotlb_unmap_page, |
86 | .map_sg = swiotlb_map_sg_attrs, | 86 | .map_sg = swiotlb_map_sg_attrs, |
@@ -95,7 +95,7 @@ static struct dma_map_ops arm64_swiotlb_dma_ops = { | |||
95 | 95 | ||
96 | void __init arm64_swiotlb_init(void) | 96 | void __init arm64_swiotlb_init(void) |
97 | { | 97 | { |
98 | dma_ops = &arm64_swiotlb_dma_ops; | 98 | dma_ops = &coherent_swiotlb_dma_ops; |
99 | swiotlb_init(1); | 99 | swiotlb_init(1); |
100 | } | 100 | } |
101 | 101 | ||