diff options
author | Greentime Hu <greentime@andestech.com> | 2018-02-28 21:55:54 -0500 |
---|---|---|
committer | Greentime Hu <greentime@andestech.com> | 2018-03-16 03:45:21 -0400 |
commit | c601a89115cbc3ccd51468295d28cfae47cc5410 (patch) | |
tree | 2355abcb70cc01b17a68024117c33b4b311799c1 | |
parent | d78a62fb347380576c0f6953cc33019b7a8995ea (diff) |
nios2: add ioremap_nocache declaration before include asm-generic/io.h.
A commit for the nds32 architecture bootstrap("asm-generic/io.h:
move ioremap_nocache/ioremap_uc/ioremap_wc/ioremap_wt out of ifndef
CONFIG_MMU") will move the ioremap_nocache out of the CONFIG_MMU ifdef.
This means that in order to suppress re-definition errors we need to
setup #define's before importing asm-generic/io.h.
Signed-off-by: Greentime Hu <greentime@andestech.com>
Reviewed-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r-- | arch/nios2/include/asm/io.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/nios2/include/asm/io.h b/arch/nios2/include/asm/io.h index ce072ba0f8dd..9010243077ab 100644 --- a/arch/nios2/include/asm/io.h +++ b/arch/nios2/include/asm/io.h | |||
@@ -45,6 +45,7 @@ static inline void iounmap(void __iomem *addr) | |||
45 | __iounmap(addr); | 45 | __iounmap(addr); |
46 | } | 46 | } |
47 | 47 | ||
48 | #define ioremap_nocache ioremap_nocache | ||
48 | #define ioremap_wc ioremap_nocache | 49 | #define ioremap_wc ioremap_nocache |
49 | #define ioremap_wt ioremap_nocache | 50 | #define ioremap_wt ioremap_nocache |
50 | 51 | ||