Skip to contentSkip to conversation

ARM: l2c: tauros2: fix OF-enabled non-DT boot

PATCH New Russell King 1 participant 1 message Nov 26, 2015 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: l2c: tauros2: fix OF-enabled non-DT boot

---
 arch/arm/mm/cache-tauros2.c | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)
arch/arm/mm/cache-tauros2.c +8 -9
index 1e373d268c04..95eb524ce556 100644
@@ -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);
 }
Signature · 1 line
2.1.0