]> git.karo-electronics.de Git - linux-beck.git/commit
asm-generic: add MMU variants of io.h functions
authorJonas Bonn <jonas@southpole.se>
Sat, 2 Jul 2011 15:17:35 +0000 (17:17 +0200)
committerJonas Bonn <jonas@southpole.se>
Fri, 22 Jul 2011 16:46:25 +0000 (18:46 +0200)
commitf1ecc69838a2d7c8a3e1909f637d4083c071777d
tree7f052a7faa1fd92b25659beaa748bb665af45c56
parenta4e05276a10198a1540dd1a0001f759c10ce1cf1
asm-generic: add MMU variants of io.h functions

Some of the implementations, in particular the ioremap variants, in
asm-generic/io.h are for systems without an MMU.  In order to be able to
use the generic header file for systems with an MMU, this patch wraps
these implementations in checks for CONFIG_MMU.

Tested on OpenRISC.

Signed-off-by: Jonas Bonn <jonas@southpole.se>
Cc: liqin.chen@sunplusct.com
Cc: gxt@mprc.pku.edu.cn
Acked-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
include/asm-generic/io.h