kernel: refresh patches
[openwrt.git] / target / linux / generic / patches-3.9 / 441-block2mtd_refresh.patch
index b2b0222..6765744 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))