summaryrefslogtreecommitdiff
path: root/target/linux/generic/patches-3.8/441-block2mtd_refresh.patch
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2013-10-02 22:26:43 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2013-10-02 22:26:43 +0000
commit101034fa2335e407843b6eeee1ac458ffa9e605b (patch)
tree9e08916217dd2314931fdbe4417c737b390cf7d9 /target/linux/generic/patches-3.8/441-block2mtd_refresh.patch
parentfa839274b0f1de41be498c25bbc4d1a92b48d64e (diff)
downloadmtk-20170518-101034fa2335e407843b6eeee1ac458ffa9e605b.zip
mtk-20170518-101034fa2335e407843b6eeee1ac458ffa9e605b.tar.gz
mtk-20170518-101034fa2335e407843b6eeee1ac458ffa9e605b.tar.bz2
kernel: refresh patches
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 38291
Diffstat (limited to 'target/linux/generic/patches-3.8/441-block2mtd_refresh.patch')
-rw-r--r--target/linux/generic/patches-3.8/441-block2mtd_refresh.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/generic/patches-3.8/441-block2mtd_refresh.patch b/target/linux/generic/patches-3.8/441-block2mtd_refresh.patch
index b2b0222..6765744 100644
--- a/target/linux/generic/patches-3.8/441-block2mtd_refresh.patch
+++ b/target/linux/generic/patches-3.8/441-block2mtd_refresh.patch
@@ -231,8 +231,7 @@
- bdev = blkdev_get_by_path(devname, mode, dev);
-#ifndef MODULE
- if (IS_ERR(bdev)) {
-+ strcpy(dev->devname, devname);
-
+-
- /* We might not have rootfs mounted at this point. Try
- to resolve the device name by other means. */
-
@@ -247,7 +246,8 @@
- goto devinit_err;
- }
- dev->blkdev = bdev;
--
++ strcpy(dev->devname, devname);
+
- if (MAJOR(bdev->bd_dev) == MTD_BLOCK_MAJOR) {
- ERROR("attempting to use an MTD device as a block device");
+ if (_open_bdev(dev))