Skip to content

Commit 89b03cc

Browse files
penbergpalmer-dabbelt
authored andcommitted
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 <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 63bb76d commit 89b03cc

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

arch/riscv/include/asm/mmio.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@
1414
#include <linux/types.h>
1515
#include <asm/mmiowb.h>
1616

17-
#ifndef CONFIG_MMU
18-
#define pgprot_noncached(x) (x)
19-
#define pgprot_writecombine(x) (x)
20-
#define pgprot_device(x) (x)
21-
#endif /* CONFIG_MMU */
22-
2317
/* Generic IO read/write. These perform native-endian accesses. */
2418
#define __raw_writeb __raw_writeb
2519
static inline void __raw_writeb(u8 val, volatile void __iomem *addr)

0 commit comments

Comments
 (0)