mtd/drivers/mtd mtd_blkdevs-24.c,1.7,1.8

David Woodhouse dwmw2 at infradead.org
Wed May 21 04:03:44 EDT 2003


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

Modified Files:
	mtd_blkdevs-24.c 
Log Message:
devfs_unregister_partitions on exit

Index: mtd_blkdevs-24.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/mtd_blkdevs-24.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- mtd_blkdevs-24.c	21 May 2003 07:53:43 -0000	1.7
+++ mtd_blkdevs-24.c	21 May 2003 08:03:42 -0000	1.8
@@ -475,6 +475,9 @@
 	if (!tr->part_bits) {
 		devfs_unregister(old->blkcore_priv);
 		old->blkcore_priv = NULL;
+	} else {
+		devfs_register_partitions(&tr->blkcore_priv->gd,
+					  old->devnum << tr->part_bits, 1);
 	}
 #endif
 	spin_lock(&tr->blkcore_priv->devs_lock);
@@ -487,7 +490,7 @@
 		tr->blkcore_priv->part_table[i].nr_sects = 0;
 		tr->blkcore_priv->part_table[i].start_sect = 0;
 	}
-		
+
 	return 0;
 }
 




More information about the linux-mtd-cvs mailing list