ARM: ux500: bail out on alien cpus
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 26 Jun 2013 19:46:08 +0000 (21:46 +0200)
committerArnd Bergmann <arnd@arndb.de>
Thu, 27 Jun 2013 13:00:56 +0000 (15:00 +0200)
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>
arch/arm/mach-ux500/cache-l2x0.c

index f58615b5c601b4ab9fc5ffcea0ae332d0a65cd3b..82ccf1d98735520ef4727c615398e478fccb8b02 100644 (file)
@@ -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();