summaryrefslogtreecommitdiffstats
path: root/arch/sh/mm/cache-shx3.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven2014-03-04 00:38:33 +0100
committerLinus Torvalds2014-03-04 16:55:49 +0100
commita5f6ea29f9a918403629f8369ae55fac6b09cb53 (patch)
treea3a9cbaa19345e20aa79d66f975aa681db9d201d /arch/sh/mm/cache-shx3.c
parentocfs2: fix quota file corruption (diff)
downloadkernel-qcow2-linux-a5f6ea29f9a918403629f8369ae55fac6b09cb53.tar.gz
kernel-qcow2-linux-a5f6ea29f9a918403629f8369ae55fac6b09cb53.tar.xz
kernel-qcow2-linux-a5f6ea29f9a918403629f8369ae55fac6b09cb53.zip
sh: prefix sh-specific "CCR" and "CCR2" by "SH_"
Commit bcf24e1daa94 ("mmc: omap_hsmmc: use the generic config for omap2plus devices"), enabled the build for other platforms for compile testing. sh-allmodconfig now fails with: include/linux/omap-dma.h:171:8: error: expected identifier before numeric constant make[4]: *** [drivers/mmc/host/omap_hsmmc.o] Error 1 This happens because SuperH #defines "CCR", which is one of the enum values in include/linux/omap-dma.h. There's a similar issue with "CCR2" on sh2a. As "CCR" and "CCR2" are too generic names for global #defines, prefix them with "SH_" to fix this. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/sh/mm/cache-shx3.c')
-rw-r--r--arch/sh/mm/cache-shx3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/mm/cache-shx3.c b/arch/sh/mm/cache-shx3.c
index c0adbee97b5f..24c58b7dc022 100644
--- a/arch/sh/mm/cache-shx3.c
+++ b/arch/sh/mm/cache-shx3.c
@@ -19,7 +19,7 @@ void __init shx3_cache_init(void)
{
unsigned int ccr;
- ccr = __raw_readl(CCR);
+ ccr = __raw_readl(SH_CCR);
/*
* If we've got cache aliases, resolve them in hardware.
@@ -40,5 +40,5 @@ void __init shx3_cache_init(void)
ccr |= CCR_CACHE_IBE;
#endif
- writel_uncached(ccr, CCR);
+ writel_uncached(ccr, SH_CCR);
}