projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95a1fec
)
ARM: uniphier: do not compile v7_outer_cache_disable if L2 is disabled
author
Masahiro Yamada
<
[email protected]
>
Wed, 10 Aug 2016 07:08:38 +0000
(16:08 +0900)
committer
Masahiro Yamada
<
[email protected]
>
Thu, 11 Aug 2016 08:49:12 +0000
(17:49 +0900)
If CONFIG_UNIPHIER_L2CACHE_ON is undefined, the L2 cache is never
enabled, so there is no need for v7_outer_cache_disable(). The weak
stub avoids the compile error anyway.
Signed-off-by: Masahiro Yamada <
[email protected]
>
arch/arm/mach-uniphier/arm32/cache-uniphier.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-uniphier/arm32/cache-uniphier.c
b/arch/arm/mach-uniphier/arm32/cache-uniphier.c
index a210835ea9f09409c31d92f5bf578243cfc842f7..66e9f6b9b7a8b1de5766f338d87a16b1905f8a8d 100644
(file)
--- a/
arch/arm/mach-uniphier/arm32/cache-uniphier.c
+++ b/
arch/arm/mach-uniphier/arm32/cache-uniphier.c
@@
-183,7
+183,6
@@
void v7_outer_cache_enable(void)
tmp |= UNIPHIER_SSCC_ON;
writel(tmp, UNIPHIER_SSCC);
}
-#endif
void v7_outer_cache_disable(void)
{
@@
-193,6
+192,7
@@
void v7_outer_cache_disable(void)
tmp &= ~UNIPHIER_SSCC_ON;
writel(tmp, UNIPHIER_SSCC);
}
+#endif
void enable_caches(void)
{