|
|
|
@ -55,9 +55,9 @@ Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> |
|
|
|
|
static struct mtd_part *allocate_partition(struct mtd_info *parent,
|
|
|
|
|
const struct mtd_partition *part, int partno,
|
|
|
|
|
uint64_t cur_offset)
|
|
|
|
|
@@ -783,8 +767,8 @@ int add_mtd_partitions(struct mtd_info *
|
|
|
|
|
@@ -803,8 +787,8 @@ int add_mtd_partitions(struct mtd_info *
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
add_mtd_device(&slave->mtd);
|
|
|
|
|
mtd_add_partition_attrs(slave);
|
|
|
|
|
- if (parts[i].types)
|
|
|
|
|
- mtd_parse_part(slave, parts[i].types);
|
|
|
|
@ -66,7 +66,7 @@ Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> |
|
|
|
|
|
|
|
|
|
cur_offset = slave->offset + slave->mtd.size;
|
|
|
|
|
}
|
|
|
|
|
@@ -860,6 +844,12 @@ static const char * const default_mtd_pa
|
|
|
|
|
@@ -885,6 +869,12 @@ static const char * const default_mtd_pa
|
|
|
|
|
NULL
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@ -79,7 +79,7 @@ Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> |
|
|
|
|
static int mtd_part_do_parse(struct mtd_part_parser *parser,
|
|
|
|
|
struct mtd_info *master,
|
|
|
|
|
struct mtd_partitions *pparts,
|
|
|
|
|
@@ -930,7 +920,9 @@ static int mtd_part_of_parse(struct mtd_
|
|
|
|
|
@@ -955,7 +945,9 @@ static int mtd_part_of_parse(struct mtd_
|
|
|
|
|
const char *fixed = "fixed-partitions";
|
|
|
|
|
int ret, err = 0;
|
|
|
|
|
|
|
|
|
@ -90,7 +90,7 @@ Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> |
|
|
|
|
of_property_for_each_string(np, "compatible", prop, compat) {
|
|
|
|
|
parser = mtd_part_get_compatible_parser(compat);
|
|
|
|
|
if (!parser)
|
|
|
|
|
@@ -993,7 +985,8 @@ int parse_mtd_partitions(struct mtd_info
|
|
|
|
|
@@ -1018,7 +1010,8 @@ int parse_mtd_partitions(struct mtd_info
|
|
|
|
|
int ret, err = 0;
|
|
|
|
|
|
|
|
|
|
if (!types)
|
|
|
|
|