diff options
author | Christoph Hellwig <hch@lst.de> | 2018-06-15 13:08:32 +0200 |
---|---|---|
committer | Paul Burton <paul.burton@mips.com> | 2018-06-24 18:26:02 +0200 |
commit | 7e4dbdc11261bd7aaa18051247d01429e0b7cd03 (patch) | |
tree | 6f6fdee653e23514ca13b7fb715adeca5d8bfe62 /arch/mips/include/asm/dma-coherence.h | |
parent | MIPS: simplify CONFIG_DMA_NONCOHERENT ifdefs (diff) | |
download | linux-7e4dbdc11261bd7aaa18051247d01429e0b7cd03.tar.xz linux-7e4dbdc11261bd7aaa18051247d01429e0b7cd03.zip |
MIPS: remove CONFIG_DMA_COHERENT
We can just check for !CONFIG_DMA_NONCOHERENT instead and simplify things
a lot.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Paul Burton <paul.burton@mips.com>
Patchwork: https://patchwork.linux-mips.org/patch/19530/
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: David Daney <david.daney@cavium.com>
Cc: Kevin Cernekee <cernekee@gmail.com>
Cc: Jiaxun Yang <jiaxun.yang@flygoat.com>
Cc: Tom Bogendoerfer <tsbogend@alpha.franken.de>
Cc: Huacai Chen <chenhc@lemote.com>
Cc: iommu@lists.linux-foundation.org
Cc: linux-mips@linux-mips.org
Diffstat (limited to 'arch/mips/include/asm/dma-coherence.h')
-rw-r--r-- | arch/mips/include/asm/dma-coherence.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/mips/include/asm/dma-coherence.h b/arch/mips/include/asm/dma-coherence.h index 72d0eab02afc..8eda48748ed5 100644 --- a/arch/mips/include/asm/dma-coherence.h +++ b/arch/mips/include/asm/dma-coherence.h @@ -21,10 +21,10 @@ enum coherent_io_user_state { extern enum coherent_io_user_state coherentio; extern int hw_coherentio; #else -#ifdef CONFIG_DMA_COHERENT -#define coherentio IO_COHERENCE_ENABLED -#else +#ifdef CONFIG_DMA_NONCOHERENT #define coherentio IO_COHERENCE_DISABLED +#else +#define coherentio IO_COHERENCE_ENABLED #endif #define hw_coherentio 0 #endif /* CONFIG_DMA_MAYBE_COHERENT */ |