diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2013-06-26 15:46:08 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2013-06-27 09:00:56 -0400 |
commit | 31c72abbcadbeabafa34f62f7530c09f2b0f1ccd (patch) | |
tree | 4ae68e0e23ee2384307b5bf037c6c165870a5d2c | |
parent | 0ad578ef25be566aa80b28115c9d696e511bc6be (diff) |
ARM: ux500: bail out on alien cpus
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>
-rw-r--r-- | arch/arm/mach-ux500/cache-l2x0.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-ux500/cache-l2x0.c b/arch/arm/mach-ux500/cache-l2x0.c index f58615b5c601..82ccf1d98735 100644 --- a/arch/arm/mach-ux500/cache-l2x0.c +++ b/arch/arm/mach-ux500/cache-l2x0.c | |||
@@ -42,7 +42,8 @@ static int __init ux500_l2x0_init(void) | |||
42 | if (cpu_is_u8500_family() || cpu_is_ux540_family()) | 42 | if (cpu_is_u8500_family() || cpu_is_ux540_family()) |
43 | l2x0_base = __io_address(U8500_L2CC_BASE); | 43 | l2x0_base = __io_address(U8500_L2CC_BASE); |
44 | else | 44 | else |
45 | ux500_unknown_soc(); | 45 | /* Non-Ux500 platform */ |
46 | return -ENODEV; | ||
46 | 47 | ||
47 | /* Unlock before init */ | 48 | /* Unlock before init */ |
48 | ux500_l2x0_unlock(); | 49 | ux500_l2x0_unlock(); |