aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/patches-3.2/440-block2mtd_init.patch
diff options
context:
space:
mode:
authorJonas Gorski <jogo@openwrt.org>2012-04-17 12:50:54 +0000
committerJonas Gorski <jogo@openwrt.org>2012-04-17 12:50:54 +0000
commit23578461a92aca344eb5d34d59352da3163281a8 (patch)
tree7884a0e5485ce8383b2b63163b38e40ea60ffb3c /target/linux/generic/patches-3.2/440-block2mtd_init.patch
parentd52ae4d7d3a8335fb68ebaf53ad52e8586e8e29b (diff)
downloadupstream-23578461a92aca344eb5d34d59352da3163281a8.tar.gz
upstream-23578461a92aca344eb5d34d59352da3163281a8.tar.bz2
upstream-23578461a92aca344eb5d34d59352da3163281a8.zip
kernel: update linux 3.2 to 3.2.15
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31335 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/patches-3.2/440-block2mtd_init.patch')
-rw-r--r--target/linux/generic/patches-3.2/440-block2mtd_init.patch12
1 files changed, 6 insertions, 6 deletions
diff --git a/target/linux/generic/patches-3.2/440-block2mtd_init.patch b/target/linux/generic/patches-3.2/440-block2mtd_init.patch
index 513fbcadbb..babc7f074a 100644
--- a/target/linux/generic/patches-3.2/440-block2mtd_init.patch
+++ b/target/linux/generic/patches-3.2/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;
-@@ -294,14 +299,17 @@ static struct block2mtd_dev *add_device(
+ dev->mtd.writebufsize = PAGE_SIZE;
+@@ -295,14 +300,17 @@ static struct block2mtd_dev *add_device(
dev->mtd.priv = dev;
dev->mtd.owner = THIS_MODULE;
@@ -62,7 +62,7 @@
return dev;
devinit_err:
-@@ -374,9 +382,9 @@ static char block2mtd_paramline[80 + 12]
+@@ -375,9 +383,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;
-@@ -387,7 +395,7 @@ static int block2mtd_setup2(const char *
+@@ -388,7 +396,7 @@ static int block2mtd_setup2(const char *
strcpy(str, val);
kill_final_newline(str);
@@ -83,7 +83,7 @@
token[i] = strsep(&str, ",");
if (str)
-@@ -406,8 +414,10 @@ static int block2mtd_setup2(const char *
+@@ -407,8 +415,10 @@ static int block2mtd_setup2(const char *
parse_err("illegal erase size");
}
}
@@ -95,7 +95,7 @@
return 0;
}
-@@ -441,7 +451,7 @@ static int block2mtd_setup(const char *v
+@@ -442,7 +452,7 @@ static int block2mtd_setup(const char *v
module_param_call(block2mtd, block2mtd_setup, NULL, NULL, 0200);