aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/patches-3.18/400-mtd-add-rootfs-split-support.patch
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2015-08-17 06:17:37 +0000
committerJohn Crispin <john@openwrt.org>2015-08-17 06:17:37 +0000
commit6856535e290aefcebd257b19a6b7d8d9c70c1171 (patch)
treee75734c6f31448927dacf3c9975396af3ba1377f /target/linux/generic/patches-3.18/400-mtd-add-rootfs-split-support.patch
parente83643d31c2364166f411e7a1bb8c183489705c0 (diff)
downloadupstream-6856535e290aefcebd257b19a6b7d8d9c70c1171.tar.gz
upstream-6856535e290aefcebd257b19a6b7d8d9c70c1171.tar.bz2
upstream-6856535e290aefcebd257b19a6b7d8d9c70c1171.zip
kernel: move linux, part-probe dt parsing in generic code
The "linux,part-probe" dts parsing is a pretty neat generic feature. It has been posted to kernel.org and could easily be reused by all targets. This change moves the patch to the 3.18 and 4.1 generic folders, and makes the feature available to all platforms who may want to use it. Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org> Acked-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 46654
Diffstat (limited to 'target/linux/generic/patches-3.18/400-mtd-add-rootfs-split-support.patch')
-rw-r--r--target/linux/generic/patches-3.18/400-mtd-add-rootfs-split-support.patch16
1 files changed, 8 insertions, 8 deletions
diff --git a/target/linux/generic/patches-3.18/400-mtd-add-rootfs-split-support.patch b/target/linux/generic/patches-3.18/400-mtd-add-rootfs-split-support.patch
index bf69a3509d..0a6e134ed5 100644
--- a/target/linux/generic/patches-3.18/400-mtd-add-rootfs-split-support.patch
+++ b/target/linux/generic/patches-3.18/400-mtd-add-rootfs-split-support.patch
@@ -26,10 +26,10 @@
depends on m
--- a/drivers/mtd/mtdpart.c
+++ b/drivers/mtd/mtdpart.c
-@@ -29,9 +29,11 @@
- #include <linux/kmod.h>
+@@ -30,9 +30,11 @@
#include <linux/mtd/mtd.h>
#include <linux/mtd/partitions.h>
+ #include <linux/of.h>
+#include <linux/magic.h>
#include <linux/err.h>
@@ -38,7 +38,7 @@
/* Our partition linked list */
static LIST_HEAD(mtd_partitions);
-@@ -45,13 +47,14 @@ struct mtd_part {
+@@ -46,13 +48,14 @@ struct mtd_part {
struct list_head list;
};
@@ -54,7 +54,7 @@
/*
* MTD methods which simply translate the effective address and pass through
* to the _real_ device.
-@@ -547,8 +550,10 @@ out_register:
+@@ -548,8 +551,10 @@ out_register:
return slave;
}
@@ -67,7 +67,7 @@
{
struct mtd_partition part;
struct mtd_part *p, *new;
-@@ -580,21 +585,24 @@ int mtd_add_partition(struct mtd_info *m
+@@ -581,21 +586,24 @@ int mtd_add_partition(struct mtd_info *m
end = offset + length;
mutex_lock(&mtd_partitions_mutex);
@@ -102,7 +102,7 @@
return ret;
err_inv:
-@@ -604,6 +612,12 @@ err_inv:
+@@ -605,6 +613,12 @@ err_inv:
}
EXPORT_SYMBOL_GPL(mtd_add_partition);
@@ -115,7 +115,7 @@
int mtd_del_partition(struct mtd_info *master, int partno)
{
struct mtd_part *slave, *next;
-@@ -627,6 +641,35 @@ int mtd_del_partition(struct mtd_info *m
+@@ -628,6 +642,35 @@ int mtd_del_partition(struct mtd_info *m
}
EXPORT_SYMBOL_GPL(mtd_del_partition);
@@ -151,7 +151,7 @@
/*
* This function, given a master MTD object and a partition table, creates
* and registers slave MTD objects which are bound to the master according to
-@@ -656,6 +699,7 @@ int add_mtd_partitions(struct mtd_info *
+@@ -657,6 +700,7 @@ int add_mtd_partitions(struct mtd_info *
mutex_unlock(&mtd_partitions_mutex);
add_mtd_device(&slave->mtd);