mirror of
https://github.com/torvalds/linux.git
synced 2024-12-22 10:56:40 +00:00
ARM: SPEAr: conditionalize l2x0 support
If the cache controller implementation is disabled at build time, we must not call any functions related to it. arch/arm/mach-spear/built-in.o: In function `spear13xx_l2x0_init': arch/arm/mach-spear/spear13xx.c:47: undefined reference to `l2x0_init' Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Viresh Kumar <viresh.linux@gmail.com>
This commit is contained in:
parent
cb48389bd6
commit
6343b05f0a
@ -92,6 +92,8 @@ void __init spear13xx_l2x0_init(void)
|
||||
* write alloc and 'Full line of zero' options
|
||||
*
|
||||
*/
|
||||
if (!IS_ENABLED(CONFIG_CACHE_L2X0))
|
||||
return;
|
||||
|
||||
writel_relaxed(0x06, VA_L2CC_BASE + L2X0_PREFETCH_CTRL);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user