diff options
| author | Christoph Hellwig <hch@lst.de> | 2018-08-19 14:53:20 +0200 |
|---|---|---|
| committer | Christoph Hellwig <hch@lst.de> | 2018-09-20 09:01:15 +0200 |
| commit | f3ecc0ff0457eae93503792c6fc35921fa8a6204 (patch) | |
| tree | cbaa1fbb29ea8d5b33fb8d1798e595147cb72729 /arch/mips/include/asm/device.h | |
| parent | 5748e1b35ba28368515d850e8087929a3a65e055 (diff) | |
| download | lwn-f3ecc0ff0457eae93503792c6fc35921fa8a6204.tar.gz lwn-f3ecc0ff0457eae93503792c6fc35921fa8a6204.zip | |
dma-mapping: move the dma_coherent flag to struct device
Various architectures support both coherent and non-coherent dma on a
per-device basis. Move the dma_noncoherent flag from the mips archdata
field to struct device proper to prepare the infrastructure for reuse on
other architectures.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Paul Burton <paul.burton@mips.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/mips/include/asm/device.h')
| -rw-r--r-- | arch/mips/include/asm/device.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/arch/mips/include/asm/device.h b/arch/mips/include/asm/device.h deleted file mode 100644 index 6aa796f1081a..000000000000 --- a/arch/mips/include/asm/device.h +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Arch specific extensions to struct device - * - * This file is released under the GPLv2 - */ -#ifndef _ASM_MIPS_DEVICE_H -#define _ASM_MIPS_DEVICE_H - -struct dev_archdata { -#ifdef CONFIG_DMA_PERDEV_COHERENT - /* Non-zero if DMA is coherent with CPU caches */ - bool dma_coherent; -#endif -}; - -struct pdev_archdata { -}; - -#endif /* _ASM_MIPS_DEVICE_H*/ |
