nios2: add ioremap_nocache declaration before include asm-generic/io.h.
authorGreentime Hu <greentime@andestech.com>
Thu, 1 Mar 2018 02:55:54 +0000 (10:55 +0800)
committerGreentime Hu <greentime@andestech.com>
Fri, 16 Mar 2018 07:45:21 +0000 (15:45 +0800)
commitc601a89115cbc3ccd51468295d28cfae47cc5410
tree2355abcb70cc01b17a68024117c33b4b311799c1
parentd78a62fb347380576c0f6953cc33019b7a8995ea
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>
arch/nios2/include/asm/io.h