aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m32r/include/asm/dma-mapping.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/m32r/include/asm/dma-mapping.h')
-rw-r--r--arch/m32r/include/asm/dma-mapping.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/m32r/include/asm/dma-mapping.h b/arch/m32r/include/asm/dma-mapping.h
index 2c43a77fe942..c01d9f52d228 100644
--- a/arch/m32r/include/asm/dma-mapping.h
+++ b/arch/m32r/include/asm/dma-mapping.h
@@ -10,10 +10,8 @@
10 10
11#define DMA_ERROR_CODE (~(dma_addr_t)0x0) 11#define DMA_ERROR_CODE (~(dma_addr_t)0x0)
12 12
13static inline struct dma_map_ops *get_dma_ops(struct device *dev) 13static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
14{ 14{
15 if (dev && dev->archdata.dma_ops)
16 return dev->archdata.dma_ops;
17 return &dma_noop_ops; 15 return &dma_noop_ops;
18} 16}
19 17