diff options
author | Christoph Hellwig <hch@lst.de> | 2018-04-16 19:27:22 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-07-25 13:33:09 +0200 |
commit | 25622e045a6aed45c9b12d1977fcb3fc3b349a73 (patch) | |
tree | bbdffdedf98ceb2f51dd1e11cf72a91959c1123d /arch/nios2/include | |
parent | 7d63fb3af87aa67aa7d24466e792f9d7c57d8e79 (diff) | |
download | linux-25622e045a6aed45c9b12d1977fcb3fc3b349a73.tar.gz linux-25622e045a6aed45c9b12d1977fcb3fc3b349a73.tar.bz2 linux-25622e045a6aed45c9b12d1977fcb3fc3b349a73.zip |
nios2: use generic dma_noncoherent_ops
Switch to the generic noncoherent direct mapping implementation.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Ley Foon Tan <ley.foon.tan@intel.com>
Tested-by: Ley Foon Tan <ley.foon.tan@intel.com>
Diffstat (limited to 'arch/nios2/include')
-rw-r--r-- | arch/nios2/include/asm/Kbuild | 1 | ||||
-rw-r--r-- | arch/nios2/include/asm/dma-mapping.h | 20 |
2 files changed, 1 insertions, 20 deletions
diff --git a/arch/nios2/include/asm/Kbuild b/arch/nios2/include/asm/Kbuild index 64ed3d656956..8fde4fa2c34f 100644 --- a/arch/nios2/include/asm/Kbuild +++ b/arch/nios2/include/asm/Kbuild @@ -9,6 +9,7 @@ generic-y += current.h generic-y += device.h generic-y += div64.h generic-y += dma.h +generic-y += dma-mapping.h generic-y += emergency-restart.h generic-y += exec.h generic-y += extable.h diff --git a/arch/nios2/include/asm/dma-mapping.h b/arch/nios2/include/asm/dma-mapping.h deleted file mode 100644 index 6ceb92251da0..000000000000 --- a/arch/nios2/include/asm/dma-mapping.h +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Copyright (C) 2011 Tobias Klauser <tklauser@distanz.ch> - * Copyright (C) 2009 Wind River Systems Inc - * - * This file is subject to the terms and conditions of the GNU General - * Public License. See the file COPYING in the main directory of this - * archive for more details. - */ - -#ifndef _ASM_NIOS2_DMA_MAPPING_H -#define _ASM_NIOS2_DMA_MAPPING_H - -extern const struct dma_map_ops nios2_dma_ops; - -static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus) -{ - return &nios2_dma_ops; -} - -#endif /* _ASM_NIOS2_DMA_MAPPING_H */ |