kernel: refresh patches
[librecmc/librecmc.git] / target / linux / generic / patches-3.8 / 441-block2mtd_refresh.patch
index b2b02229e1721f56369b722e611d5ce72134cfe0..67657443ff59abd7ec8a9be77677aa87f6050055 100644 (file)
 -      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. */
 -
 -              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))