diff options
Diffstat (limited to 'include/linux/dma-mapping.h')
-rw-r--r-- | include/linux/dma-mapping.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/dma-mapping.h b/include/linux/dma-mapping.h index 0c3eab1e39ac..931b70986272 100644 --- a/include/linux/dma-mapping.h +++ b/include/linux/dma-mapping.h | |||
@@ -129,6 +129,13 @@ static inline int dma_coerce_mask_and_coherent(struct device *dev, u64 mask) | |||
129 | 129 | ||
130 | extern u64 dma_get_required_mask(struct device *dev); | 130 | extern u64 dma_get_required_mask(struct device *dev); |
131 | 131 | ||
132 | #ifndef set_arch_dma_coherent_ops | ||
133 | static inline int set_arch_dma_coherent_ops(struct device *dev) | ||
134 | { | ||
135 | return 0; | ||
136 | } | ||
137 | #endif | ||
138 | |||
132 | static inline unsigned int dma_get_max_seg_size(struct device *dev) | 139 | static inline unsigned int dma_get_max_seg_size(struct device *dev) |
133 | { | 140 | { |
134 | return dev->dma_parms ? dev->dma_parms->max_segment_size : 65536; | 141 | return dev->dma_parms ? dev->dma_parms->max_segment_size : 65536; |