aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/include/asm/dma-mapping.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc/include/asm/dma-mapping.h')
-rw-r--r--arch/sparc/include/asm/dma-mapping.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/sparc/include/asm/dma-mapping.h b/arch/sparc/include/asm/dma-mapping.h
index 1180ae254154..69cc627779f2 100644
--- a/arch/sparc/include/asm/dma-mapping.h
+++ b/arch/sparc/include/asm/dma-mapping.h
@@ -18,20 +18,20 @@ static inline void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
18 */ 18 */
19} 19}
20 20
21extern struct dma_map_ops *dma_ops; 21extern const struct dma_map_ops *dma_ops;
22extern struct dma_map_ops *leon_dma_ops; 22extern const struct dma_map_ops *leon_dma_ops;
23extern struct dma_map_ops pci32_dma_ops; 23extern const struct dma_map_ops pci32_dma_ops;
24 24
25extern struct bus_type pci_bus_type; 25extern struct bus_type pci_bus_type;
26 26
27static inline struct dma_map_ops *get_dma_ops(struct device *dev) 27static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
28{ 28{
29#ifdef CONFIG_SPARC_LEON 29#ifdef CONFIG_SPARC_LEON
30 if (sparc_cpu_model == sparc_leon) 30 if (sparc_cpu_model == sparc_leon)
31 return leon_dma_ops; 31 return leon_dma_ops;
32#endif 32#endif
33#if defined(CONFIG_SPARC32) && defined(CONFIG_PCI) 33#if defined(CONFIG_SPARC32) && defined(CONFIG_PCI)
34 if (dev->bus == &pci_bus_type) 34 if (bus == &pci_bus_type)
35 return &pci32_dma_ops; 35 return &pci32_dma_ops;
36#endif 36#endif
37 return dma_ops; 37 return dma_ops;