summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-07-29 11:43:46 +0200
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2011-08-01 21:49:33 +0800
commitd77ef333479fd7e051b8de25c3b393708813202f (patch)
tree57670d7b426579bf55f9a21ba5a0be0ae53dc158
parent5f56079cd5175d1dc87e21951544959b786bda9a (diff)
downloadbarebox-d77ef333479fd7e051b8de25c3b393708813202f.tar.gz
barebox-d77ef333479fd7e051b8de25c3b393708813202f.tar.xz
ARM l2x0: make init function static inline if l2 is not available
So that the ifdeffery can be moved out of the board code. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/include/asm/mmu.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/include/asm/mmu.h b/arch/arm/include/asm/mmu.h
index f2354481c4..d96c7289a9 100644
--- a/arch/arm/include/asm/mmu.h
+++ b/arch/arm/include/asm/mmu.h
@@ -60,7 +60,13 @@ static inline void dma_inv_range(unsigned long s, unsigned long e)
#endif
+#ifdef CONFIG_CACHE_L2X0
void __init l2x0_init(void __iomem *base, __u32 aux_val, __u32 aux_mask);
+#else
+static inline void __init l2x0_init(void __iomem *base, __u32 aux_val, __u32 aux_mask)
+{
+}
+#endif
struct outer_cache_fns {
void (*inv_range)(unsigned long, unsigned long);