浏览代码

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 <olof@lixom.net>
Olof Johansson 11 年之前
父节点
当前提交
b5b9324a62
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      arch/arm/mach-exynos/exynos.c

+ 3 - 0
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;