• Arnd Bergmann's avatar
    ARM: mvebu: build armada375-smp code conditionally · 67d4f781
    Arnd Bergmann authored
    commit 16523518 upstream.
    
    mvebu_armada375_smp_wa_init is only used on armada 375 but is defined
    for all mvebu machines. As it calls a function that is only provided
    sometimes, this can result in a link error:
    
    arch/arm/mach-mvebu/built-in.o: In function `mvebu_armada375_smp_wa_init':
    :(.text+0x228): undefined reference to `mvebu_setup_boot_addr_wa'
    
    To solve this, we can just change the existing #ifdef around the
    function to also check for Armada375 SMP platforms.
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Fixes: 305969fb ("ARM: mvebu: use the common function for Armada 375 SMP workaround")
    Cc: Andrew Lunn <andrew@lunn.ch>
    Cc: Jason Cooper <jason@lakedaemon.net>
    Cc: Gregory Clement <gregory.clement@free-electrons.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    67d4f781
system-controller.c 4.71 KB