ARM: OMAP4: Export omap4_get_base*() rather than global address pointers
[firefly-linux-kernel-4.4.55.git] / arch / arm / mach-omap2 / omap4-common.c
index 21d4821c9612c8fb8f6da42ffc798baf71c83fc4..4a3d2898543bbae0140dbf4e75c8c47d74517d80 100644 (file)
@@ -26,7 +26,7 @@
 #include "common.h"
 
 #ifdef CONFIG_CACHE_L2X0
-void __iomem *l2cache_base;
+static void __iomem *l2cache_base;
 #endif
 
 void __init gic_init_irq(void)
@@ -47,6 +47,11 @@ void __init gic_init_irq(void)
 
 #ifdef CONFIG_CACHE_L2X0
 
+void __iomem *omap4_get_l2cache_base(void)
+{
+       return l2cache_base;
+}
+
 static void omap4_l2x0_disable(void)
 {
        /* Disable PL310 L2 Cache controller */