mtd/drivers/mtd afs.c,1.9,1.10 cmdlinepart.c,1.7,1.8

David Woodhouse dwmw2 at infradead.org
Fri May 16 12:11:10 EDT 2003


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

Modified Files:
	afs.c cmdlinepart.c 
Log Message:
Update to new partition probe registration

Index: afs.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/afs.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- afs.c	17 Feb 2003 21:49:09 -0000	1.9
+++ afs.c	16 May 2003 16:11:07 -0000	1.10
@@ -127,7 +127,7 @@
 
 int parse_afs_partitions(struct mtd_info *mtd, 
                          struct mtd_partition **pparts,
-                         void *origin)
+                         unsigned long origin)
 {
 	struct mtd_partition *parts;
 	u_int mask, off, idx, sz;
@@ -230,6 +230,27 @@
 }
 
 EXPORT_SYMBOL(parse_afs_partitions);
+
+
+static struct mtd_part_parser afs_parser = {
+	.owner = THIS_MODULE,
+	.parse_fn = parse_afs_partitions,
+	.name = "afs",
+};
+
+static int __init afs_parser_init(void)
+{
+	return register_mtd_parser(&afs_parser);
+}
+
+static void __exit afs_parser_exit(void)
+{
+	deregister_mtd_parser(&afs_parser);
+}
+
+module_init(afs_parser_init);
+module_exit(afs_parser_exit);
+
 
 MODULE_AUTHOR("ARM Ltd");
 MODULE_DESCRIPTION("ARM Firmware Suite partition parser");

Index: cmdlinepart.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/cmdlinepart.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- cmdlinepart.c	16 May 2003 16:06:09 -0000	1.7
+++ cmdlinepart.c	16 May 2003 16:11:07 -0000	1.8
@@ -352,6 +352,27 @@
 
 EXPORT_SYMBOL(parse_cmdline_partitions);
 
+
+static struct mtd_part_parser cmdline_parser = {
+	.owner = THIS_MODULE,
+	.parse_fn = parse_cmdline_partitions,
+	.name = "cmdlinepart",
+};
+
+static int __init cmdline_parser_init(void)
+{
+	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>");
 MODULE_DESCRIPTION("Command line configuration of MTD partitions");




More information about the linux-mtd-cvs mailing list