]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
arm-nommu: don't define arch_teardown_dma_ops
authorChristoph Hellwig <hch@lst.de>
Fri, 24 Aug 2018 07:47:20 +0000 (09:47 +0200)
committerChristoph Hellwig <hch@lst.de>
Sat, 8 Sep 2018 09:19:10 +0000 (11:19 +0200)
We can just use the default implementation.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
arch/arm/include/asm/dma-mapping.h
arch/arm/mm/dma-mapping-nommu.c

index 8436f6ade57dd145a717c11aa5207854a68c25a0..965b7c846ecb1c61318ed743342ec85e97ca2e03 100644 (file)
@@ -100,8 +100,10 @@ static inline unsigned long dma_max_pfn(struct device *dev)
 extern void arch_setup_dma_ops(struct device *dev, u64 dma_base, u64 size,
                               const struct iommu_ops *iommu, bool coherent);
 
+#ifdef CONFIG_MMU
 #define arch_teardown_dma_ops arch_teardown_dma_ops
 extern void arch_teardown_dma_ops(struct device *dev);
+#endif
 
 /* do not use this function in a driver */
 static inline bool is_device_dma_coherent(struct device *dev)
index f448a0663b1064230b5956ac929e119a184c7e4b..aa7aba302e76be6cb05ec5f253c441a053c16a84 100644 (file)
@@ -237,7 +237,3 @@ void arch_setup_dma_ops(struct device *dev, u64 dma_base, u64 size,
 
        set_dma_ops(dev, dma_ops);
 }
-
-void arch_teardown_dma_ops(struct device *dev)
-{
-}