kernel: refresh patches

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 38291
This commit is contained in:
Hauke Mehrtens
2013-10-02 22:26:43 +00:00
parent fa839274b0
commit 101034fa23
11 changed files with 25 additions and 65 deletions

View File

@@ -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))