mtd/drivers/mtd Config.in, 1.76, 1.77 Kconfig, 1.4, 1.5 cmdlinepart.c, 1.12, 1.13

gleixner at infradead.org gleixner at infradead.org
Fri Jun 4 11:59:35 EDT 2004


Update of /home/cvs/mtd/drivers/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv31539

Modified Files:
	Config.in Kconfig cmdlinepart.c 
Log Message:
Make command line parition parsing built in only. Module makes no sense. Signed-off-by: Thomas Gleixner <tglx at linutronix.de>

Index: Config.in
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/Config.in,v
retrieving revision 1.76
retrieving revision 1.77
diff -u -r1.76 -r1.77
--- Config.in	1 Apr 2004 10:17:40 -0000	1.76
+++ Config.in	4 Jun 2004 15:59:32 -0000	1.77
@@ -18,7 +18,9 @@
       bool '  Include unallocated flash space' CONFIG_MTD_REDBOOT_PARTS_UNALLOCATED
       bool '  Force read-only for RedBoot system images' CONFIG_MTD_REDBOOT_PARTS_READONLY
    fi
-   dep_tristate '  Command line partition table parsing' CONFIG_MTD_CMDLINE_PARTS $CONFIG_MTD_PARTITIONS
+   if [ "$CONFIG_MTD_PARTITIONS" = "y" ]; then
+      bool '  Command line partition table parsing' CONFIG_MTD_CMDLINE_PARTS 
+   fi
    if [ "$CONFIG_ARM" = "y" ]; then
       dep_tristate '  ARM Firmware Suite partition parsing' CONFIG_MTD_AFS_PARTS $CONFIG_MTD_PARTITIONS
    fi

Index: Kconfig
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/Kconfig,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- Kconfig	1 Apr 2004 10:17:40 -0000	1.4
+++ Kconfig	4 Jun 2004 15:59:32 -0000	1.5
@@ -83,8 +83,8 @@
 	  'FIS directory' images, enable this option.
 
 config MTD_CMDLINE_PARTS
-	tristate "Command line partition table parsing"
-	depends on MTD_PARTITIONS
+	bool "Command line partition table parsing"
+	depends on MTD_PARTITIONS = "y"
 	---help---
 	  Allow generic configuration of the MTD paritition tables via the kernel
 	  command line. Multiple flash resources are supported for hardware where

Index: cmdlinepart.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/cmdlinepart.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- cmdlinepart.c	18 Mar 2004 08:43:14 -0000	1.12
+++ cmdlinepart.c	4 Jun 2004 15:59:32 -0000	1.13
@@ -359,14 +359,7 @@
 	return register_mtd_parser(&cmdline_parser);
 }
 
-static void __exit cmdline_parser_exit(void)
-{
-	deregister_mtd_parser(&cmdline_parser);
-}
-
 module_init(cmdline_parser_init);
-module_exit(cmdline_parser_exit);
-
 
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Marius Groeger <mag at sysgo.de>");





More information about the linux-mtd-cvs mailing list