diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2015-12-10 20:53:02 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2015-12-10 20:53:02 +0000 |
commit | 1ad2f1bf3f986d98251eb56dc278c4d4606d49bf (patch) | |
tree | c430c058c7b1d9ff4c51c5350a7ef0e3534d0ee8 /target/linux/mvebu/patches-4.4/100-find_active_root.patch | |
parent | 930035f9fa98f438a71337f707fc43316318a1be (diff) | |
download | master-187ad058-1ad2f1bf3f986d98251eb56dc278c4d4606d49bf.tar.gz master-187ad058-1ad2f1bf3f986d98251eb56dc278c4d4606d49bf.tar.bz2 master-187ad058-1ad2f1bf3f986d98251eb56dc278c4d4606d49bf.zip |
mvebu: update and fixup 4.4 patches
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47832 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/mvebu/patches-4.4/100-find_active_root.patch')
-rw-r--r-- | target/linux/mvebu/patches-4.4/100-find_active_root.patch | 15 |
1 files changed, 8 insertions, 7 deletions
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 <kaloz@openwrt.org> --- 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 <kaloz@openwrt.org> 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 <kaloz@openwrt.org> (*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; } |