mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
treewide: Consolidate get_dma_ops() implementations
Introduce a new architecture-specific get_arch_dma_ops() function that takes a struct bus_type * argument. Add get_dma_ops() in <linux/dma-mapping.h>. Signed-off-by: Bart Van Assche <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Cc: Boris Ostrovsky <[email protected]> Cc: David Woodhouse <[email protected]> Cc: Juergen Gross <[email protected]> Cc: H. Peter Anvin <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: [email protected] Cc: [email protected] Cc: Russell King <[email protected]> Cc: [email protected] Signed-off-by: Doug Ledford <[email protected]>
This commit is contained in:
parent
ca6e8e1031
commit
815dd18788
31 changed files with 48 additions and 64 deletions
|
|
@ -29,12 +29,9 @@ extern const struct dma_map_ops *gx_pci_dma_map_ops;
|
|||
extern const struct dma_map_ops *gx_legacy_pci_dma_map_ops;
|
||||
extern const struct dma_map_ops *gx_hybrid_pci_dma_map_ops;
|
||||
|
||||
static inline const struct dma_map_ops *get_dma_ops(struct device *dev)
|
||||
static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
|
||||
{
|
||||
if (dev && dev->dma_ops)
|
||||
return dev->dma_ops;
|
||||
else
|
||||
return tile_dma_map_ops;
|
||||
return tile_dma_map_ops;
|
||||
}
|
||||
|
||||
static inline dma_addr_t get_dma_offset(struct device *dev)
|
||||
|
|
|
|||
Loading…
Reference in a new issue