提交 31c72abb 编写于 作者: L Linus Walleij 提交者: Arnd Bergmann

ARM: ux500: bail out on alien cpus

This makes the l2x0 initialization fail gracefully on non-ux500
systems.
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: NOlof Johansson <olof@lixom.net>
上级 0ad578ef
......@@ -42,7 +42,8 @@ static int __init ux500_l2x0_init(void)
if (cpu_is_u8500_family() || cpu_is_ux540_family())
l2x0_base = __io_address(U8500_L2CC_BASE);
else
ux500_unknown_soc();
/* Non-Ux500 platform */
return -ENODEV;
/* Unlock before init */
ux500_l2x0_unlock();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册