mtd/drivers/mtd redboot.c,1.7,1.8

David Woodhouse dwmw2 at infradead.org
Fri May 16 12:07:08 EDT 2003


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

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

Index: redboot.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/redboot.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- redboot.c	17 Feb 2003 21:49:09 -0000	1.7
+++ redboot.c	16 May 2003 16:07:06 -0000	1.8
@@ -163,6 +163,25 @@
 
 EXPORT_SYMBOL(parse_redboot_partitions);
 
+static struct mtd_part_parser redboot_parser = {
+	.owner = THIS_MODULE,
+	.parse_fn = parse_redboot_partitions,
+	.name = "RedBoot",
+};
+
+static int __init redboot_parser_init(void)
+{
+	return register_mtd_parser(&redboot_parser);
+}
+
+static void __exit redboot_parser_exit(void)
+{
+	deregister_mtd_parser(&redboot_parser);
+}
+
+module_init(redboot_parser_init);
+module_exit(redboot_parser_exit);
+
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Red Hat, Inc. - David Woodhouse <dwmw2 at cambridge.redhat.com>");
 MODULE_DESCRIPTION("Parsing code for RedBoot Flash Image System (FIS) tables");




More information about the linux-mtd-cvs mailing list