diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-04-28 10:54:08 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-05-29 19:49:15 -0400 |
commit | 15b0bc4041baf0444e4ddd969849bb1d91703f59 (patch) | |
tree | 3ecfbfc371d3dd863680ca896b51ed422c7ba1f3 | |
parent | 25a9ef63cd2beb248e51bd192df19fbe5cf20545 (diff) |
ARM: l2c: exynos: convert to generic l2c OF initialisation (and thereby fix it)
exynos was unconditionally calling the L2 cache initialisation from an
early_initcall. This breaks multiplatform kernels. Thankfully,
converting to generic l2c initialisation fixes this.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r-- | arch/arm/mach-exynos/exynos.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c index fbfc29df3299..a763c0862da9 100644 --- a/arch/arm/mach-exynos/exynos.c +++ b/arch/arm/mach-exynos/exynos.c | |||
@@ -316,12 +316,6 @@ static int __init exynos_core_init(void) | |||
316 | } | 316 | } |
317 | core_initcall(exynos_core_init); | 317 | core_initcall(exynos_core_init); |
318 | 318 | ||
319 | static int __init exynos4_l2x0_cache_init(void) | ||
320 | { | ||
321 | return l2x0_of_init(0x3c400001, 0xc20fffff); | ||
322 | } | ||
323 | early_initcall(exynos4_l2x0_cache_init); | ||
324 | |||
325 | static void __init exynos_dt_machine_init(void) | 319 | static void __init exynos_dt_machine_init(void) |
326 | { | 320 | { |
327 | struct device_node *i2c_np; | 321 | struct device_node *i2c_np; |
@@ -387,6 +381,8 @@ static void __init exynos_reserve(void) | |||
387 | DT_MACHINE_START(EXYNOS_DT, "SAMSUNG EXYNOS (Flattened Device Tree)") | 381 | DT_MACHINE_START(EXYNOS_DT, "SAMSUNG EXYNOS (Flattened Device Tree)") |
388 | /* Maintainer: Thomas Abraham <thomas.abraham@linaro.org> */ | 382 | /* Maintainer: Thomas Abraham <thomas.abraham@linaro.org> */ |
389 | /* Maintainer: Kukjin Kim <kgene.kim@samsung.com> */ | 383 | /* Maintainer: Kukjin Kim <kgene.kim@samsung.com> */ |
384 | .l2c_aux_val = 0x3c400001, | ||
385 | .l2c_aux_mask = 0xc20fffff, | ||
390 | .smp = smp_ops(exynos_smp_ops), | 386 | .smp = smp_ops(exynos_smp_ops), |
391 | .map_io = exynos_init_io, | 387 | .map_io = exynos_init_io, |
392 | .init_early = exynos_firmware_init, | 388 | .init_early = exynos_firmware_init, |