summaryrefslogtreecommitdiff
path: root/arch/riscv/include/asm/mmio.h
diff options
context:
space:
mode:
authorPekka Enberg <penberg@kernel.org>2020-07-15 08:33:40 +0300
committerPalmer Dabbelt <palmerdabbelt@google.com>2020-07-30 11:37:46 -0700
commit89b03cc1dff0654fc01958f3bdd5005c9a510e2e (patch)
treeefba6d3c01c1639c9ecd2f3e22677fd672f34219 /arch/riscv/include/asm/mmio.h
parent63bb76de4aeec833ae7ba05d85a7819ac4558126 (diff)
riscv: Use generic pgprot_* macros from <linux/pgtable.h>
The <linux/pgtable.h> header now defines generic pgprot_ macros also for the no-MMU configuration, so let's use them. Signed-off-by: Pekka Enberg <penberg@kernel.org> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'arch/riscv/include/asm/mmio.h')
-rw-r--r--arch/riscv/include/asm/mmio.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/riscv/include/asm/mmio.h b/arch/riscv/include/asm/mmio.h
index 56053c9838b2..aff6c33ab0c0 100644
--- a/arch/riscv/include/asm/mmio.h
+++ b/arch/riscv/include/asm/mmio.h
@@ -14,12 +14,6 @@
#include <linux/types.h>
#include <asm/mmiowb.h>
-#ifndef CONFIG_MMU
-#define pgprot_noncached(x) (x)
-#define pgprot_writecombine(x) (x)
-#define pgprot_device(x) (x)
-#endif /* CONFIG_MMU */
-
/* Generic IO read/write. These perform native-endian accesses. */
#define __raw_writeb __raw_writeb
static inline void __raw_writeb(u8 val, volatile void __iomem *addr)