diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2018-12-03 10:33:36 +0100 |
---|---|---|
committer | Rafał Miłecki <rafal@milecki.pl> | 2018-12-03 10:34:12 +0100 |
commit | e24983e710dd7a22909e26af1ad8ee8d027b5c71 (patch) | |
tree | cd385342a57b7bd8ecd2eeaf43138cd7ba1d5d1b /target/linux/generic/pending-4.14/404-mtd-add-more-helper-functions.patch | |
parent | 675eb747aa1cb76d4d6e715728592974acac8cc1 (diff) | |
download | upstream-e24983e710dd7a22909e26af1ad8ee8d027b5c71.tar.gz upstream-e24983e710dd7a22909e26af1ad8ee8d027b5c71.tar.bz2 upstream-e24983e710dd7a22909e26af1ad8ee8d027b5c71.zip |
kernel: backport 2 mtd partitioning fixes
This improves handling of subpartitions.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'target/linux/generic/pending-4.14/404-mtd-add-more-helper-functions.patch')
-rw-r--r-- | target/linux/generic/pending-4.14/404-mtd-add-more-helper-functions.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/generic/pending-4.14/404-mtd-add-more-helper-functions.patch b/target/linux/generic/pending-4.14/404-mtd-add-more-helper-functions.patch index 8715304fa5..94c59df01d 100644 --- a/target/linux/generic/pending-4.14/404-mtd-add-more-helper-functions.patch +++ b/target/linux/generic/pending-4.14/404-mtd-add-more-helper-functions.patch @@ -11,7 +11,7 @@ Signed-off-by: Gabor Juhos <juhosg@openwrt.org> --- a/drivers/mtd/mtdpart.c +++ b/drivers/mtd/mtdpart.c -@@ -1225,6 +1225,24 @@ int mtd_is_partition(const struct mtd_in +@@ -1235,6 +1235,24 @@ int mtd_is_partition(const struct mtd_in } EXPORT_SYMBOL_GPL(mtd_is_partition); @@ -38,7 +38,7 @@ Signed-off-by: Gabor Juhos <juhosg@openwrt.org> { --- a/include/linux/mtd/mtd.h +++ b/include/linux/mtd/mtd.h -@@ -493,6 +493,24 @@ static inline uint32_t mtd_mod_by_eb(uin +@@ -494,6 +494,24 @@ static inline uint32_t mtd_mod_by_eb(uin return do_div(sz, mtd->erasesize); } |