|
@@ -384,7 +384,7 @@ static void mips_dma_cache_sync(struct device *dev, void *vaddr, size_t size,
|
|
|
__dma_sync_virtual(vaddr, size, direction);
|
|
|
}
|
|
|
|
|
|
-static const struct dma_map_ops mips_default_dma_map_ops = {
|
|
|
+const struct dma_map_ops mips_default_dma_map_ops = {
|
|
|
.alloc = mips_dma_alloc_coherent,
|
|
|
.free = mips_dma_free_coherent,
|
|
|
.mmap = mips_dma_mmap,
|
|
@@ -399,6 +399,4 @@ static const struct dma_map_ops mips_default_dma_map_ops = {
|
|
|
.dma_supported = mips_dma_supported,
|
|
|
.cache_sync = mips_dma_cache_sync,
|
|
|
};
|
|
|
-
|
|
|
-const struct dma_map_ops *mips_dma_map_ops = &mips_default_dma_map_ops;
|
|
|
-EXPORT_SYMBOL(mips_dma_map_ops);
|
|
|
+EXPORT_SYMBOL(mips_default_dma_map_ops);
|