hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/arch/mips/include/asm/dma-mapping.h
....@@ -10,22 +10,8 @@
1010 {
1111 #if defined(CONFIG_MACH_JAZZ)
1212 return &jazz_dma_ops;
13
-#elif defined(CONFIG_SWIOTLB)
14
- return &swiotlb_dma_ops;
15
-#elif defined(CONFIG_DMA_NONCOHERENT_OPS)
16
- return &dma_noncoherent_ops;
1713 #else
18
- return &dma_direct_ops;
19
-#endif
20
-}
21
-
22
-#define arch_setup_dma_ops arch_setup_dma_ops
23
-static inline void arch_setup_dma_ops(struct device *dev, u64 dma_base,
24
- u64 size, const struct iommu_ops *iommu,
25
- bool coherent)
26
-{
27
-#ifdef CONFIG_DMA_PERDEV_COHERENT
28
- dev->archdata.dma_coherent = coherent;
14
+ return NULL;
2915 #endif
3016 }
3117