kernel: make make patches/files apply/compile for kernel 5.2
[openwrt/staging/mkresin.git] / target / linux / generic / pending-5.2 / 404-mtd-add-more-helper-functions.patch
index 3e1a65137910aafd7579fef7d2ef799384a0f4f4..d3640ff407ed5e26ae0c4a679fc7369bd82d81b6 100644 (file)
@@ -11,7 +11,7 @@ Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
 
 --- a/drivers/mtd/mtdpart.c
 +++ b/drivers/mtd/mtdpart.c
-@@ -1179,6 +1179,24 @@ int mtd_is_partition(const struct mtd_in
+@@ -1165,6 +1165,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
-@@ -509,6 +509,24 @@ static inline void mtd_align_erase_req(s
+@@ -495,6 +495,24 @@ static inline void mtd_align_erase_req(s
                req->len += mtd->erasesize - mod;
  }