asm-generic/io.h: move ioremap_nocache/ioremap_uc/ioremap_wc/ioremap_wt out of ifndef...
authorGreentime Hu <greentime@andestech.com>
Wed, 22 Nov 2017 10:57:46 +0000 (18:57 +0800)
committerGreentime Hu <greentime@andestech.com>
Thu, 22 Feb 2018 02:44:30 +0000 (10:44 +0800)
commitb3ada9d0ce8d286c8bbbb02fdbddec5036242b42
treef459bc321749a4a902343c7bbdb4b8854059779e
parent94bc61ead46c3d9943bd35a4536e61d4ea9f1e66
asm-generic/io.h: move ioremap_nocache/ioremap_uc/ioremap_wc/ioremap_wt out of ifndef CONFIG_MMU

It allows some architectures to use this generic macro instead of
defining theirs.

sparc: io: To use the define of ioremap_[nocache|wc|wb] in asm-generic/io.h
It will move the ioremap_nocache out of the CONFIG_MMU ifdef. This means that
in order to suppress re-definition errors we need to remove the #define
in arch/sparc/include/asm/io_32.h. Also, the change adds a prototype for
ioremap where size is size_t and offset is phys_addr_t so fix that as well.

Signed-off-by: Greentime Hu <greentime@andestech.com>
arch/sparc/include/asm/io_32.h
arch/sparc/kernel/ioport.c
include/asm-generic/io.h