Skip to content

Commit 172f3fc

Browse files
author
Russell King
committed
ARM: l2c: tauros2: fix OF-enabled non-DT boot
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
1 parent 6a13feb commit 172f3fc

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

arch/arm/mm/cache-tauros2.c

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -287,16 +287,15 @@ void __init tauros2_init(unsigned int features)
287287
node = of_find_matching_node(NULL, tauros2_ids);
288288
if (!node) {
289289
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;
291298
}
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;
300299
#endif
301300
tauros2_internal_init(features);
302301
}

0 commit comments

Comments
 (0)