summaryrefslogtreecommitdiffstats
path: root/target/linux/generic-2.6/patches-2.6.26/060-block2mtd_init.patch
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2008-07-26 19:17:07 +0000
committerGabor Juhos <juhosg@openwrt.org>2008-07-26 19:17:07 +0000
commit44b51440ce610cb6166bccab7ab066c1fff33a19 (patch)
treee12b3529e8e3dab8e97c52f732a894693c0b48ed /target/linux/generic-2.6/patches-2.6.26/060-block2mtd_init.patch
parent4bc51e20f21baaee23731f804b35d65937c6e19f (diff)
downloadmaster-31e0f0ae-44b51440ce610cb6166bccab7ab066c1fff33a19.tar.gz
master-31e0f0ae-44b51440ce610cb6166bccab7ab066c1fff33a19.tar.bz2
master-31e0f0ae-44b51440ce610cb6166bccab7ab066c1fff33a19.zip
cleanup trailing whitespaces in 2.6.26 patches
SVN-Revision: 11945
Diffstat (limited to 'target/linux/generic-2.6/patches-2.6.26/060-block2mtd_init.patch')
-rw-r--r--target/linux/generic-2.6/patches-2.6.26/060-block2mtd_init.patch11
1 files changed, 4 insertions, 7 deletions
diff --git a/target/linux/generic-2.6/patches-2.6.26/060-block2mtd_init.patch b/target/linux/generic-2.6/patches-2.6.26/060-block2mtd_init.patch
index a271efbcd2..6fb0be1010 100644
--- a/target/linux/generic-2.6/patches-2.6.26/060-block2mtd_init.patch
+++ b/target/linux/generic-2.6/patches-2.6.26/060-block2mtd_init.patch
@@ -35,23 +35,20 @@
+
if (!dev->mtd.name)
goto devinit_err;
-+
-+ strcpy(dev->mtd.name, mtdname);
- sprintf(dev->mtd.name, "block2mtd: %s", devname);
--
++ strcpy(dev->mtd.name, mtdname);
+
- dev->mtd.size = dev->blkdev->bd_inode->i_size & PAGE_MASK;
+ 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;
-@@ -298,15 +304,18 @@
- dev->mtd.read = block2mtd_read;
+@@ -299,14 +305,17 @@
dev->mtd.priv = dev;
dev->mtd.owner = THIS_MODULE;
--
+
- if (add_mtd_device(&dev->mtd)) {
-+
+ part = kzalloc(sizeof(struct mtd_partition), GFP_KERNEL);
+ part->name = dev->mtd.name;
+ part->offset = 0;