diff options
author | Hauke Mehrtens <hauke@openwrt.org> | 2013-10-02 22:26:43 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@openwrt.org> | 2013-10-02 22:26:43 +0000 |
commit | 09751431614a0a1f9d388d1bd876b5c31f4a5fc0 (patch) | |
tree | d11fc6cf918875ee705c56bc76b90ac53289ffdf /target/linux/generic/patches-3.9/441-block2mtd_refresh.patch | |
parent | b0e8546858af85049589f7d00f7c3f45c05e2304 (diff) | |
download | master-187ad058-09751431614a0a1f9d388d1bd876b5c31f4a5fc0.tar.gz master-187ad058-09751431614a0a1f9d388d1bd876b5c31f4a5fc0.tar.bz2 master-187ad058-09751431614a0a1f9d388d1bd876b5c31f4a5fc0.zip |
kernel: refresh patches
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38291 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/patches-3.9/441-block2mtd_refresh.patch')
-rw-r--r-- | target/linux/generic/patches-3.9/441-block2mtd_refresh.patch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/generic/patches-3.9/441-block2mtd_refresh.patch b/target/linux/generic/patches-3.9/441-block2mtd_refresh.patch index b2b02229e1..67657443ff 100644 --- a/target/linux/generic/patches-3.9/441-block2mtd_refresh.patch +++ b/target/linux/generic/patches-3.9/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)) |