kernel: fix automatic rootfs partition selection on 2.6.31
authorGabor Juhos <juhosg@openwrt.org>
Thu, 8 Oct 2009 18:34:45 +0000 (18:34 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Thu, 8 Oct 2009 18:34:45 +0000 (18:34 +0000)
SVN-Revision: 18007

target/linux/generic-2.6/patches-2.6.31/065-rootfs_split.patch

index a642dee2ad8a1831eb533bfcc6a2809f96c4c55a..50ca25ce6726dbec83656b6e4394a3bb0016be2b 100644 (file)
 +                      if (ROOT_DEV == 0) {
 +                              printk(KERN_NOTICE "mtd: partition \"rootfs\" "
 +                                      "set to be root filesystem\n");
-+                              ROOT_DEV = MKDEV(MTD_BLOCK_MAJOR, i);
++                              ROOT_DEV = MKDEV(MTD_BLOCK_MAJOR, slave->mtd.index);
 +                      }
 +#endif
 +#ifdef CONFIG_MTD_ROOTFS_SPLIT