ARM: l2c: tauros2: fix OF-enabled non-DT boot
authorRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 26 Nov 2015 22:12:02 +0000 (22:12 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 26 Nov 2015 22:12:02 +0000 (22:12 +0000)
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/cache-tauros2.c

index 1e373d268c04c3e3697ac40aaca1915f436a147b..95eb524ce556dfc49df3f53a97d98be4d72e4dc1 100644 (file)
@@ -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);
 }
This page took 0.02589 seconds and 5 git commands to generate.