diff options
author | Christoph Hellwig <hch@lst.de> | 2017-12-23 10:56:51 +0100 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-01-15 09:35:05 +0100 |
commit | c5cd037d1c8044fbd131c57822a67a1576eb16e9 (patch) | |
tree | d2eb3d4d56fc33e15d231dcc2bc4e2645cf31d61 /include | |
parent | cea9d03c822cf1b8e90cc4fc51be6d248fb5d776 (diff) |
dma-mapping: provide a generic asm/dma-mapping.h
For architectures that just use the generic dma_noop_ops we can provide
a generic version of dma-mapping.h.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-generic/dma-mapping.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/asm-generic/dma-mapping.h b/include/asm-generic/dma-mapping.h new file mode 100644 index 000000000000..164031531d85 --- /dev/null +++ b/include/asm-generic/dma-mapping.h @@ -0,0 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _ASM_GENERIC_DMA_MAPPING_H +#define _ASM_GENERIC_DMA_MAPPING_H + +static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus) +{ + return &dma_noop_ops; +} + +#endif /* _ASM_GENERIC_DMA_MAPPING_H */ |