aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic-2.6/patches-2.6.31
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2009-10-08 18:34:45 +0000
committerGabor Juhos <juhosg@openwrt.org>2009-10-08 18:34:45 +0000
commitf805c54e192c4f1d98524e49bb7f52dd0b651d9d (patch)
tree85497571134cf68a7a0a5074b744aff99f8bce38 /target/linux/generic-2.6/patches-2.6.31
parentfee30ff73a6cbd8720f8dc7af814e2e40bbd66c2 (diff)
downloadmaster-187ad058-f805c54e192c4f1d98524e49bb7f52dd0b651d9d.tar.gz
master-187ad058-f805c54e192c4f1d98524e49bb7f52dd0b651d9d.tar.bz2
master-187ad058-f805c54e192c4f1d98524e49bb7f52dd0b651d9d.zip
kernel: fix automatic rootfs partition selection on 2.6.31
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18007 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic-2.6/patches-2.6.31')
-rw-r--r--target/linux/generic-2.6/patches-2.6.31/065-rootfs_split.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/generic-2.6/patches-2.6.31/065-rootfs_split.patch b/target/linux/generic-2.6/patches-2.6.31/065-rootfs_split.patch
index a642dee2ad..50ca25ce67 100644
--- a/target/linux/generic-2.6/patches-2.6.31/065-rootfs_split.patch
+++ b/target/linux/generic-2.6/patches-2.6.31/065-rootfs_split.patch
@@ -207,7 +207,7 @@
+ 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