X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=target%2Flinux%2Fmvebu%2Fpatches-4.4%2F100-find_active_root.patch;fp=target%2Flinux%2Fmvebu%2Fpatches-4.4%2F100-find_active_root.patch;h=cd5dd02f2e92e66d6cce4e0857757c6657ffa8f5;hp=e32b6089d10edf242e265de685a881e89bc5c9ed;hb=6646de54d8fc53133770e23f3478b88331e1dd90;hpb=ed292cc09326fc15ac4eb21c05b5c85555ef7a51 diff --git a/target/linux/mvebu/patches-4.4/100-find_active_root.patch b/target/linux/mvebu/patches-4.4/100-find_active_root.patch index e32b6089d1..cd5dd02f2e 100644 --- a/target/linux/mvebu/patches-4.4/100-find_active_root.patch +++ b/target/linux/mvebu/patches-4.4/100-find_active_root.patch @@ -5,7 +5,7 @@ Signed-off-by: Imre Kaloz --- a/drivers/mtd/ofpart.c +++ b/drivers/mtd/ofpart.c -@@ -25,12 +25,15 @@ static bool node_has_compatible(struct d +@@ -25,6 +25,8 @@ static bool node_has_compatible(struct d return of_get_property(pp, "compatible", NULL); } @@ -14,14 +14,15 @@ Signed-off-by: Imre Kaloz static int parse_ofpart_partitions(struct mtd_info *master, struct mtd_partition **pparts, struct mtd_part_parser_data *data) - { - struct device_node *node; +@@ -32,6 +34,7 @@ static int parse_ofpart_partitions(struc + struct device_node *mtd_node; + struct device_node *ofpart_node; const char *partname; + const char *owrtpart = "ubi"; struct device_node *pp; - int nr_parts, i; - -@@ -78,9 +81,15 @@ static int parse_ofpart_partitions(struc + int nr_parts, i, ret = 0; + bool dedicated = true; +@@ -102,9 +105,15 @@ static int parse_ofpart_partitions(struc (*pparts)[i].offset = of_read_number(reg, a_cells); (*pparts)[i].size = of_read_number(reg + a_cells, s_cells); @@ -40,7 +41,7 @@ Signed-off-by: Imre Kaloz (*pparts)[i].name = partname; if (of_get_property(pp, "read-only", &len)) -@@ -178,6 +187,18 @@ static int __init ofpart_parser_init(voi +@@ -207,6 +216,18 @@ static int __init ofpart_parser_init(voi return 0; }