diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2017-06-23 10:47:18 +0200 |
---|---|---|
committer | Rafał Miłecki <rafal@milecki.pl> | 2017-06-23 11:40:05 +0200 |
commit | 4d5f296af857ecbd3916d1d156d1bc63c998995a (patch) | |
tree | ac9c9dac59054e607ad4c357bb2edc01669b5937 /target/linux/generic/patches-4.9/404-mtd-add-more-helper-functions.patch | |
parent | 8c1e760ab60994de26d2a2c85f91e86192999dfb (diff) | |
download | upstream-4d5f296af857ecbd3916d1d156d1bc63c998995a.tar.gz upstream-4d5f296af857ecbd3916d1d156d1bc63c998995a.tar.bz2 upstream-4d5f296af857ecbd3916d1d156d1bc63c998995a.zip |
kernel: backport upstream mtd support for partition parsers
In a log term it should replace our implementation. For now both can
coexist.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'target/linux/generic/patches-4.9/404-mtd-add-more-helper-functions.patch')
-rw-r--r-- | target/linux/generic/patches-4.9/404-mtd-add-more-helper-functions.patch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/generic/patches-4.9/404-mtd-add-more-helper-functions.patch b/target/linux/generic/patches-4.9/404-mtd-add-more-helper-functions.patch index 319a22a450..ef7b671b8b 100644 --- a/target/linux/generic/patches-4.9/404-mtd-add-more-helper-functions.patch +++ b/target/linux/generic/patches-4.9/404-mtd-add-more-helper-functions.patch @@ -1,6 +1,6 @@ --- a/drivers/mtd/mtdpart.c +++ b/drivers/mtd/mtdpart.c -@@ -753,6 +753,17 @@ run_parsers_by_type(struct mtd_part *sla +@@ -791,6 +791,17 @@ run_parsers_by_type(struct mtd_part *sla return nr_parts; } @@ -18,7 +18,7 @@ #ifdef CONFIG_MTD_SPLIT_FIRMWARE_NAME #define SPLIT_FIRMWARE_NAME CONFIG_MTD_SPLIT_FIRMWARE_NAME #else -@@ -1106,6 +1117,24 @@ int mtd_is_partition(const struct mtd_in +@@ -1146,6 +1157,24 @@ int mtd_is_partition(const struct mtd_in } EXPORT_SYMBOL_GPL(mtd_is_partition); @@ -45,7 +45,7 @@ { --- a/include/linux/mtd/partitions.h +++ b/include/linux/mtd/partitions.h -@@ -107,6 +107,8 @@ int mtd_is_partition(const struct mtd_in +@@ -114,6 +114,8 @@ int mtd_is_partition(const struct mtd_in int mtd_add_partition(struct mtd_info *master, const char *name, long long offset, long long length); int mtd_del_partition(struct mtd_info *master, int partno); |