aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2015-11-26 17:12:02 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2015-11-26 17:12:02 -0500
commit172f3fcb17382faafc71091868370b6765da7a43 (patch)
treeb8f2c63086fdb05a2b194be75db94e6b7408563c
parent6a13feb9c82803e2b815eca72fa7a9f5561d7861 (diff)
ARM: l2c: tauros2: fix OF-enabled non-DT boot
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r--arch/arm/mm/cache-tauros2.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/arch/arm/mm/cache-tauros2.c b/arch/arm/mm/cache-tauros2.c
index 1e373d268c04..95eb524ce556 100644
--- a/arch/arm/mm/cache-tauros2.c
+++ b/arch/arm/mm/cache-tauros2.c
@@ -287,16 +287,15 @@ void __init tauros2_init(unsigned int features)
287 node = of_find_matching_node(NULL, tauros2_ids); 287 node = of_find_matching_node(NULL, tauros2_ids);
288 if (!node) { 288 if (!node) {
289 pr_info("Not found marvell,tauros2-cache, disable it\n"); 289 pr_info("Not found marvell,tauros2-cache, disable it\n");
290 return; 290 } else {
291 ret = of_property_read_u32(node, "marvell,tauros2-cache-features", &f);
292 if (ret) {
293 pr_info("Not found marvell,tauros-cache-features property, "
294 "disable extra features\n");
295 features = 0;
296 } else
297 features = f;
291 } 298 }
292
293 ret = of_property_read_u32(node, "marvell,tauros2-cache-features", &f);
294 if (ret) {
295 pr_info("Not found marvell,tauros-cache-features property, "
296 "disable extra features\n");
297 features = 0;
298 } else
299 features = f;
300#endif 299#endif
301 tauros2_internal_init(features); 300 tauros2_internal_init(features);
302} 301}