arm64: fix NULL dereference in have_cpu_die()
[linux/fpc-iii.git] / arch / cris / include / asm / dma-mapping.h
blob5a370178a0e95a7463688ab591860aeb5050c94f
1 #ifndef _ASM_CRIS_DMA_MAPPING_H
2 #define _ASM_CRIS_DMA_MAPPING_H
4 #ifdef CONFIG_PCI
5 extern struct dma_map_ops v32_dma_ops;
7 static inline struct dma_map_ops *get_dma_ops(struct device *dev)
9 return &v32_dma_ops;
11 #else
12 static inline struct dma_map_ops *get_dma_ops(struct device *dev)
14 BUG();
15 return NULL;
17 #endif
19 static inline void
20 dma_cache_sync(struct device *dev, void *vaddr, size_t size,
21 enum dma_data_direction direction)
25 #endif