diff options
Diffstat (limited to 'arch/arm/mach-omap2/omap4-common.c')
-rw-r--r-- | arch/arm/mach-omap2/omap4-common.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/arch/arm/mach-omap2/omap4-common.c b/arch/arm/mach-omap2/omap4-common.c index 6927d5b120fe..c41ff8b638e1 100644 --- a/arch/arm/mach-omap2/omap4-common.c +++ b/arch/arm/mach-omap2/omap4-common.c | |||
@@ -196,17 +196,10 @@ static void omap4_l2c310_write_sec(unsigned long val, unsigned reg) | |||
196 | omap_smc1(smc_op, val); | 196 | omap_smc1(smc_op, val); |
197 | } | 197 | } |
198 | 198 | ||
199 | static int __init omap_l2_cache_init(void) | 199 | int __init omap_l2_cache_init(void) |
200 | { | 200 | { |
201 | u32 aux_ctrl; | 201 | u32 aux_ctrl; |
202 | 202 | ||
203 | /* | ||
204 | * To avoid code running on other OMAPs in | ||
205 | * multi-omap builds | ||
206 | */ | ||
207 | if (!cpu_is_omap44xx()) | ||
208 | return -ENODEV; | ||
209 | |||
210 | /* Static mapping, never released */ | 203 | /* Static mapping, never released */ |
211 | l2cache_base = ioremap(OMAP44XX_L2CACHE_BASE, SZ_4K); | 204 | l2cache_base = ioremap(OMAP44XX_L2CACHE_BASE, SZ_4K); |
212 | if (WARN_ON(!l2cache_base)) | 205 | if (WARN_ON(!l2cache_base)) |
@@ -225,7 +218,6 @@ static int __init omap_l2_cache_init(void) | |||
225 | 218 | ||
226 | return 0; | 219 | return 0; |
227 | } | 220 | } |
228 | omap_early_initcall(omap_l2_cache_init); | ||
229 | #endif | 221 | #endif |
230 | 222 | ||
231 | void __iomem *omap4_get_sar_ram_base(void) | 223 | void __iomem *omap4_get_sar_ram_base(void) |