summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2015-11-26 22:12:02 +0000
committerRussell King <rmk+kernel@arm.linux.org.uk>2015-11-26 22:12:02 +0000
commit172f3fcb17382faafc71091868370b6765da7a43 (patch)
treeb8f2c63086fdb05a2b194be75db94e6b7408563c
parent6a13feb9c82803e2b815eca72fa7a9f5561d7861 (diff)
downloadop-kernel-dev-172f3fcb17382faafc71091868370b6765da7a43.zip
op-kernel-dev-172f3fcb17382faafc71091868370b6765da7a43.tar.gz
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 1e373d2..95eb524 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)
node = of_find_matching_node(NULL, tauros2_ids);
if (!node) {
pr_info("Not found marvell,tauros2-cache, disable it\n");
- return;
+ } else {
+ ret = of_property_read_u32(node, "marvell,tauros2-cache-features", &f);
+ if (ret) {
+ pr_info("Not found marvell,tauros-cache-features property, "
+ "disable extra features\n");
+ features = 0;
+ } else
+ features = f;
}
-
- ret = of_property_read_u32(node, "marvell,tauros2-cache-features", &f);
- if (ret) {
- pr_info("Not found marvell,tauros-cache-features property, "
- "disable extra features\n");
- features = 0;
- } else
- features = f;
#endif
tauros2_internal_init(features);
}
OpenPOWER on IntegriCloud