]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ARM: mvebu: build armada375-smp code conditionally
authorArnd Bergmann <arnd@arndb.de>
Mon, 2 Feb 2015 14:27:16 +0000 (15:27 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Mar 2015 22:53:00 +0000 (14:53 -0800)
commit67d4f7810b05babda07d6cdf21b0a72acb8eed2e
tree8068198be65bc6c2ebb4fddb0a35f57ddedaf8b2
parent9487809ac53173adcd4ca61d10f8e30a8eccb373
ARM: mvebu: build armada375-smp code conditionally

commit 165235180ff61f0012ea68a299e46daec43dcaa7 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: Arnd Bergmann <arnd@arndb.de>
Fixes: 305969fb6292 ("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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/mach-mvebu/system-controller.c