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);
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) {
+ }
for ( ; *types; types++) {
- pr_debug("%s: parsing partitions %s\n", master->name, *types);
+ /*