upgrade 3.13 targets to 3.13.2, refresh patches
[openwrt/openwrt.git] / target / linux / x86_64 / patches / 012-export_erase_write.patch
1 --- a/drivers/mtd/mtdblock.c
2 +++ b/drivers/mtd/mtdblock.c
3 @@ -63,7 +63,7 @@ static void erase_callback(struct erase_
4 wake_up(wait_q);
5 }
6
7 -static int erase_write (struct mtd_info *mtd, unsigned long pos,
8 +int erase_write (struct mtd_info *mtd, unsigned long pos,
9 int len, const char *buf)
10 {
11 struct erase_info erase;
12 --- a/include/linux/mtd/mtd.h
13 +++ b/include/linux/mtd/mtd.h
14 @@ -414,6 +414,9 @@ extern void register_mtd_user (struct mt
15 extern int unregister_mtd_user (struct mtd_notifier *old);
16 void *mtd_kmalloc_up_to(const struct mtd_info *mtd, size_t *size);
17
18 +int erase_write (struct mtd_info *mtd, unsigned long pos,
19 + int len, const char *buf);
20 +
21 void mtd_erase_callback(struct erase_info *instr);
22
23 static inline int mtd_is_bitflip(int err) {