aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/include/asm/dma-mapping.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/include/asm/dma-mapping.h')
-rw-r--r--arch/mips/include/asm/dma-mapping.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/arch/mips/include/asm/dma-mapping.h b/arch/mips/include/asm/dma-mapping.h
index 7aa71b9b0258..aba71385f9d1 100644
--- a/arch/mips/include/asm/dma-mapping.h
+++ b/arch/mips/include/asm/dma-mapping.h
@@ -9,14 +9,11 @@
9#include <dma-coherence.h> 9#include <dma-coherence.h>
10#endif 10#endif
11 11
12extern struct dma_map_ops *mips_dma_map_ops; 12extern const struct dma_map_ops *mips_dma_map_ops;
13 13
14static inline struct dma_map_ops *get_dma_ops(struct device *dev) 14static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
15{ 15{
16 if (dev && dev->archdata.dma_ops) 16 return mips_dma_map_ops;
17 return dev->archdata.dma_ops;
18 else
19 return mips_dma_map_ops;
20} 17}
21 18
22static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size) 19static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size)