Unverified Commit 89b03cc1 authored by Pekka Enberg's avatar Pekka Enberg Committed by Palmer Dabbelt
Browse files

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: default avatarPekka Enberg <penberg@kernel.org>
Signed-off-by: default avatarPalmer Dabbelt <palmerdabbelt@google.com>
parent 63bb76de
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -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)