diff options
author | Christoph Hellwig <hch@lst.de> | 2019-08-13 12:52:20 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2019-11-12 13:37:58 +0300 |
commit | eafee59440623e06b0ce4a0e49f814a8cf31d8ca (patch) | |
tree | 4d7b2dc7e65b8d4a9ddd86420fc9c532d88a28f8 /arch/nds32/include/asm/pgtable.h | |
parent | 0055f67b596c3a8963192a42e25797b0e7fc0e92 (diff) | |
download | linux-eafee59440623e06b0ce4a0e49f814a8cf31d8ca.tar.xz |
nds32: use generic ioremap
Use the generic ioremap_prot and iounmap helpers.
Note that the io.h include in pgtable.h had to be removed to not create
an include loop. As far as I can tell there was no need for it to
start with.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Greentime Hu <green.hu@gmail.com>
Diffstat (limited to 'arch/nds32/include/asm/pgtable.h')
-rw-r--r-- | arch/nds32/include/asm/pgtable.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/nds32/include/asm/pgtable.h b/arch/nds32/include/asm/pgtable.h index 0588ec99725c..6fbf251cfc26 100644 --- a/arch/nds32/include/asm/pgtable.h +++ b/arch/nds32/include/asm/pgtable.h @@ -12,7 +12,6 @@ #include <asm/nds32.h> #ifndef __ASSEMBLY__ #include <asm/fixmap.h> -#include <asm/io.h> #include <nds32_intrinsic.h> #endif @@ -130,6 +129,9 @@ extern void __pgd_error(const char *file, int line, unsigned long val); #define _PAGE_CACHE _PAGE_C_MEM_WB #endif +#define _PAGE_IOREMAP \ + (_PAGE_V | _PAGE_M_KRW | _PAGE_D | _PAGE_G | _PAGE_C_DEV) + /* * + Level 1 descriptor (PMD) */ |