[ifxmips] add .32 patches
[openwrt.git] / target / linux / rdc / patches-2.6.30 / 012-export_erase_write.patch
1 Index: linux-2.6.30.10/drivers/mtd/mtdblock.c
2 ===================================================================
3 --- linux-2.6.30.10.orig/drivers/mtd/mtdblock.c 2010-03-19 00:17:37.000000000 +0100
4 +++ linux-2.6.30.10/drivers/mtd/mtdblock.c 2010-03-19 00:17:54.000000000 +0100
5 @@ -45,7 +45,7 @@
6 wake_up(wait_q);
7 }
8
9 -static int erase_write (struct mtd_info *mtd, unsigned long pos,
10 +int erase_write (struct mtd_info *mtd, unsigned long pos,
11 int len, const char *buf)
12 {
13 struct erase_info erase;
14 Index: linux-2.6.30.10/include/linux/mtd/mtd.h
15 ===================================================================
16 --- linux-2.6.30.10.orig/include/linux/mtd/mtd.h 2010-03-19 00:17:42.000000000 +0100
17 +++ linux-2.6.30.10/include/linux/mtd/mtd.h 2010-03-19 00:21:22.000000000 +0100
18 @@ -319,6 +319,10 @@
19 int default_mtd_readv(struct mtd_info *mtd, struct kvec *vecs,
20 unsigned long count, loff_t from, size_t *retlen);
21
22 +int erase_write (struct mtd_info *mtd, unsigned long pos,
23 + int len, const char *buf);
24 +
25 +
26 #ifdef CONFIG_MTD_PARTITIONS
27 void mtd_erase_callback(struct erase_info *instr);
28 #else
This page took 0.038991 seconds and 5 git commands to generate.