Skip to content

Commit

Permalink
ARM: ux500: bail out on alien cpus
Browse files Browse the repository at this point in the history
This makes the l2x0 initialization fail gracefully on non-ux500
systems.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
  • Loading branch information
Linus Walleij authored and Arnd Bergmann committed Jun 27, 2013
1 parent 0ad578e commit 31c72ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/arm/mach-ux500/cache-l2x0.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 31c72ab

Please sign in to comment.