|
@@ -140,9 +140,16 @@ ofpart_none:
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
+static const struct of_device_id parse_ofpart_match_table[] = {
|
|
|
+ { .compatible = "fixed-partitions" },
|
|
|
+ {},
|
|
|
+};
|
|
|
+MODULE_DEVICE_TABLE(of, parse_ofpart_match_table);
|
|
|
+
|
|
|
static struct mtd_part_parser ofpart_parser = {
|
|
|
.parse_fn = parse_fixed_partitions,
|
|
|
.name = "fixed-partitions",
|
|
|
+ .of_match_table = parse_ofpart_match_table,
|
|
|
};
|
|
|
|
|
|
static int parse_ofoldpart_partitions(struct mtd_info *master,
|