ARM64: dma-mapping: export iommu_dma_ops (temporary)
authorMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 12 Mar 2015 12:10:04 +0000 (13:10 +0100)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 14 Dec 2016 04:43:52 +0000 (13:43 +0900)
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
arch/arm64/include/asm/dma-mapping.h
arch/arm64/mm/dma-mapping.c

index 66f65c5..6b4b053 100644 (file)
@@ -61,6 +61,8 @@ static inline bool is_device_dma_coherent(struct device *dev)
 
 #ifdef CONFIG_IOMMU_DMA
 
+extern struct dma_map_ops iommu_dma_ops;
+
 void arch_teardown_dma_ops(struct device *dev);
 #define arch_teardown_dma_ops  arch_teardown_dma_ops
 
index 89d4c74..f4b80d9 100644 (file)
@@ -728,7 +728,7 @@ static void __iommu_unmap_sg_attrs(struct device *dev,
        iommu_dma_unmap_sg(dev, sgl, nelems, dir, attrs);
 }
 
-static struct dma_map_ops iommu_dma_ops = {
+struct dma_map_ops iommu_dma_ops = {
        .alloc = __iommu_alloc_attrs,
        .free = __iommu_free_attrs,
        .mmap = __iommu_mmap_attrs,