diff options
Diffstat (limited to 'arch/mips/include/asm/dma-mapping.h')
-rw-r--r-- | arch/mips/include/asm/dma-mapping.h | 9 |
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 | ||
12 | extern struct dma_map_ops *mips_dma_map_ops; | 12 | extern const struct dma_map_ops *mips_dma_map_ops; |
13 | 13 | ||
14 | static inline struct dma_map_ops *get_dma_ops(struct device *dev) | 14 | static 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 | ||
22 | static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size) | 19 | static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size) |