kernel: update kernel 4.9 to version 4.9.91
[openwrt/openwrt.git] / target / linux / brcm63xx / patches-4.9 / 120-mtd-add-of_match_table-parsing-for-partition-parsers.patch
index 82992c54035eeb0055ea71e7c911af313d38bfaa..6a93398c725da44086a48c56d2d6a8a540d52ed6 100644 (file)
@@ -52,9 +52,9 @@ Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
  
                cur_offset = slave->offset + slave->mtd.size;
        }
-@@ -1164,7 +1163,9 @@ int parse_mtd_partitions(struct mtd_info
-                       types = types_of;
-       }
+@@ -1136,7 +1135,9 @@ static int mtd_part_of_parse(struct mtd_
+       const char *fixed = "fixed-partitions";
+       int ret, err = 0;
  
 -      np = of_get_child_by_name(mtd_get_of_node(master), "partitions");
 +      np = mtd_get_of_node(master);
@@ -63,9 +63,9 @@ Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
        of_property_for_each_string(np, "compatible", prop, compat) {
                parser = mtd_part_get_compatible_parser(compat);
                if (!parser)
-@@ -1180,8 +1181,12 @@ int parse_mtd_partitions(struct mtd_info
+@@ -1208,8 +1209,12 @@ int parse_mtd_partitions(struct mtd_info
+                       types = types_of;
        }
-       of_node_put(np);
  
 -      if (!types)
 +      if (!types) {
@@ -76,4 +76,4 @@ Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
 +      }
  
        for ( ; *types; types++) {
-               pr_debug("%s: parsing partitions %s\n", master->name, *types);
+               /*