diff options
author | Jonas Gorski <jogo@openwrt.org> | 2012-04-17 12:51:02 +0000 |
---|---|---|
committer | Jonas Gorski <jogo@openwrt.org> | 2012-04-17 12:51:02 +0000 |
commit | 3a9b6dc313ddaddac16ccf0a1cc8672ee065d323 (patch) | |
tree | 52ef8f96d3552c60ea801c3acc79865339611a34 /target/linux/generic/patches-3.3/440-block2mtd_init.patch | |
parent | ee4c47a134723b78162f9f5eedc9f132dd19f6b7 (diff) | |
download | upstream-3a9b6dc313ddaddac16ccf0a1cc8672ee065d323.tar.gz upstream-3a9b6dc313ddaddac16ccf0a1cc8672ee065d323.tar.bz2 upstream-3a9b6dc313ddaddac16ccf0a1cc8672ee065d323.zip |
kernel: update linux 3.3 to 3.3.2
SVN-Revision: 31336
Diffstat (limited to 'target/linux/generic/patches-3.3/440-block2mtd_init.patch')
-rw-r--r-- | target/linux/generic/patches-3.3/440-block2mtd_init.patch | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/target/linux/generic/patches-3.3/440-block2mtd_init.patch b/target/linux/generic/patches-3.3/440-block2mtd_init.patch index 07f21678d1..00208c8700 100644 --- a/target/linux/generic/patches-3.3/440-block2mtd_init.patch +++ b/target/linux/generic/patches-3.3/440-block2mtd_init.patch @@ -40,8 +40,8 @@ + dev->mtd.size = dev->blkdev->bd_inode->i_size & PAGE_MASK & ~(erase_size - 1); dev->mtd.erasesize = erase_size; dev->mtd.writesize = 1; - dev->mtd.type = MTD_RAM; -@@ -293,14 +298,17 @@ static struct block2mtd_dev *add_device( + dev->mtd.writebufsize = PAGE_SIZE; +@@ -294,14 +299,17 @@ static struct block2mtd_dev *add_device( dev->mtd.priv = dev; dev->mtd.owner = THIS_MODULE; @@ -62,7 +62,7 @@ return dev; devinit_err: -@@ -373,9 +381,9 @@ static char block2mtd_paramline[80 + 12] +@@ -374,9 +382,9 @@ static char block2mtd_paramline[80 + 12] static int block2mtd_setup2(const char *val) { @@ -74,7 +74,7 @@ char *name; size_t erase_size = PAGE_SIZE; int i, ret; -@@ -386,7 +394,7 @@ static int block2mtd_setup2(const char * +@@ -387,7 +395,7 @@ static int block2mtd_setup2(const char * strcpy(str, val); kill_final_newline(str); @@ -83,7 +83,7 @@ token[i] = strsep(&str, ","); if (str) -@@ -405,8 +413,10 @@ static int block2mtd_setup2(const char * +@@ -406,8 +414,10 @@ static int block2mtd_setup2(const char * parse_err("illegal erase size"); } } @@ -95,7 +95,7 @@ return 0; } -@@ -440,7 +450,7 @@ static int block2mtd_setup(const char *v +@@ -441,7 +451,7 @@ static int block2mtd_setup(const char *v module_param_call(block2mtd, block2mtd_setup, NULL, NULL, 0200); |