ARM: l2c: tauros2: fix OF-enabled non-DT boot
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
@@ -287,16 +287,15 @@ void __init tauros2_init(unsigned int features)
|
|||||||
node = of_find_matching_node(NULL, tauros2_ids);
|
node = of_find_matching_node(NULL, tauros2_ids);
|
||||||
if (!node) {
|
if (!node) {
|
||||||
pr_info("Not found marvell,tauros2-cache, disable it\n");
|
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
|
#endif
|
||||||
tauros2_internal_init(features);
|
tauros2_internal_init(features);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user