From 26f8e4e4af5b33bf461c5aca90a5171b9118c3ce Mon Sep 17 00:00:00 2001 From: Olof Johansson Date: Sat, 31 May 2014 10:13:46 -0700 Subject: [PATCH] ARM: exynos: don't run exynos4 l2x0 setup on other platforms This was caught by a panic on Broadcom mobile platforms. Note that this code is all going away with the pending l2x0 cleanup series from Russell, but we need this here until that's landed so we can enable exynos multiplatform. Signed-off-by: Olof Johansson --- arch/arm/mach-exynos/exynos.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c index d51d5af7e7df5..4800b1ce3d71e 100644 --- a/arch/arm/mach-exynos/exynos.c +++ b/arch/arm/mach-exynos/exynos.c @@ -246,6 +246,9 @@ static int __init exynos4_l2x0_cache_init(void) { int ret; + if (!soc_is_exynos4()) + return 0; + ret = l2x0_of_init(L2_AUX_VAL, L2_AUX_MASK); if (ret) return ret; -- 2.39.5