mtd/drivers/mtd/maps physmap.c,1.27,1.28

David Woodhouse dwmw2 at infradead.org
Wed May 28 11:53:46 EDT 2003


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

Modified Files:
	physmap.c 
Log Message:
Fix partition handling


Index: physmap.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/maps/physmap.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- physmap.c	21 May 2003 12:45:19 -0000	1.27
+++ physmap.c	28 May 2003 15:53:43 -0000	1.28
@@ -59,6 +59,7 @@
 };
 
 #define NUM_PARTITIONS	(sizeof(physmap_partitions)/sizeof(struct mtd_partition))
+const char *part_probes[] = {"cmdlinepart", "RedBoot", NULL};
 
 #endif /* CONFIG_MTD_PARTITIONS */
 
@@ -86,7 +87,7 @@
 		mymtd->owner = THIS_MODULE;
 
 #ifdef CONFIG_MTD_PARTITIONS
-		mtd_parts_nb = parse_mtd_partitions(mymtd, probes, 
+		mtd_parts_nb = parse_mtd_partitions(mymtd, part_probes, 
 						    &mtd_parts, 0);
 
 		if (mtd_parts_nb > 0)
@@ -120,7 +121,7 @@
 		del_mtd_partitions(mymtd);
 		kfree(mtd_parts);
 	} else if (NUM_PARTITIONS) {
-		del_mtd_partions(mymtd);
+		del_mtd_partitions(mymtd);
 	} else {
 		del_mtd_device(mymtd);
 	}




More information about the linux-mtd-cvs mailing list