diff options
author | Guan Xuetao <gxt@mprc.pku.edu.cn> | 2011-08-18 03:38:05 -0400 |
---|---|---|
committer | Guan Xuetao <gxt@mprc.pku.edu.cn> | 2012-01-09 21:29:41 -0500 |
commit | a50e4213e71adc7dde0d514aabd8af7275fee39f (patch) | |
tree | 0ae6d6611a570ea25358416515aa586fdefbdc73 /arch/unicore32 | |
parent | 62439a2954b9027c9ec481e1d39cd5d63f7c1b17 (diff) |
unicore32: add ioremap_nocache definition
Bugfix for following error messages:
lib/iomap.c: In function 'pci_iomap':
lib/iomap.c:274: error: implicit declaration of function 'ioremap_nocache'
lib/iomap.c:274: warning: return makes pointer from integer without a cast
Also see commit <f1ecc69838a2d7c8a3e1909f637d4083c071777d>
it will hide the ioremap_nocache function for systems with an MMU
Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Jonas Bonn <jonas@southpole.se>
Diffstat (limited to 'arch/unicore32')
-rw-r--r-- | arch/unicore32/include/asm/io.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/unicore32/include/asm/io.h b/arch/unicore32/include/asm/io.h index a75ad0b117cc..adddf6d64077 100644 --- a/arch/unicore32/include/asm/io.h +++ b/arch/unicore32/include/asm/io.h | |||
@@ -37,6 +37,7 @@ extern void __uc32_iounmap(volatile void __iomem *addr); | |||
37 | */ | 37 | */ |
38 | #define ioremap(cookie, size) __uc32_ioremap(cookie, size) | 38 | #define ioremap(cookie, size) __uc32_ioremap(cookie, size) |
39 | #define ioremap_cached(cookie, size) __uc32_ioremap_cached(cookie, size) | 39 | #define ioremap_cached(cookie, size) __uc32_ioremap_cached(cookie, size) |
40 | #define ioremap_nocache(cookie, size) __uc32_ioremap(cookie, size) | ||
40 | #define iounmap(cookie) __uc32_iounmap(cookie) | 41 | #define iounmap(cookie) __uc32_iounmap(cookie) |
41 | 42 | ||
42 | #define HAVE_ARCH_PIO_SIZE | 43 | #define HAVE_ARCH_PIO_SIZE |