aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/maps/uclinux.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-05-11 01:51:53 -0400
committerDavid Woodhouse <dwmw2@infradead.org>2007-05-11 06:48:15 -0400
commit33672f72b24191fb17c3666ec1c620f3fa617b50 (patch)
tree40a690eba5ec1dff1bc7435fbde7b001b7324fde /drivers/mtd/maps/uclinux.c
parentb7aa48be1e7a11e36448a7db58931bbf735d2718 (diff)
[MTD] [MAPS] don't force uclinux mtd map to be root dev
The cheesy uclinux mtd maps can be used for more than just the root device, so I think we should drop the forcing. Also, I feel like this is a policy decision that shouldnt be in the kernel in the first place. People who have been lazy and boot with uclinux mtd maps and dont put root= into their commandline can simply add the appropriate root= line either into their bootloader or into the compiled in bootargs. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Acked-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers/mtd/maps/uclinux.c')
-rw-r--r--drivers/mtd/maps/uclinux.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/mtd/maps/uclinux.c b/drivers/mtd/maps/uclinux.c
index 389fea28b9a6..14ffb1a9302a 100644
--- a/drivers/mtd/maps/uclinux.c
+++ b/drivers/mtd/maps/uclinux.c
@@ -16,7 +16,6 @@
16#include <linux/kernel.h> 16#include <linux/kernel.h>
17#include <linux/fs.h> 17#include <linux/fs.h>
18#include <linux/major.h> 18#include <linux/major.h>
19#include <linux/root_dev.h>
20#include <linux/mtd/mtd.h> 19#include <linux/mtd/mtd.h>
21#include <linux/mtd/map.h> 20#include <linux/mtd/map.h>
22#include <linux/mtd/partitions.h> 21#include <linux/mtd/partitions.h>
@@ -89,10 +88,6 @@ int __init uclinux_mtd_init(void)
89 uclinux_ram_mtdinfo = mtd; 88 uclinux_ram_mtdinfo = mtd;
90 add_mtd_partitions(mtd, uclinux_romfs, NUM_PARTITIONS); 89 add_mtd_partitions(mtd, uclinux_romfs, NUM_PARTITIONS);
91 90
92 printk("uclinux[mtd]: set %s to be root filesystem\n",
93 uclinux_romfs[0].name);
94 ROOT_DEV = MKDEV(MTD_BLOCK_MAJOR, 0);
95
96 return(0); 91 return(0);
97} 92}
98 93