mtd/drivers/mtd/nand nand.c,1.43,1.44

David Woodhouse dwmw2 at infradead.org
Wed May 14 18:26:35 EDT 2003


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

Modified Files:
	nand.c 
Log Message:
fix races in get_mtd_device etc, use set_module_owner everywhere

Index: nand.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/nand.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -r1.43 -r1.44
--- nand.c	14 Apr 2003 07:00:39 -0000	1.43
+++ nand.c	14 May 2003 22:26:32 -0000	1.44
@@ -1352,7 +1352,6 @@
 	/* Fill in remaining MTD driver data */
 	mtd->type = MTD_NANDFLASH;
 	mtd->flags = MTD_CAP_NANDFLASH | MTD_ECC;
-	mtd->module = THIS_MODULE;
 	mtd->ecctype = MTD_ECC_SW;
 	mtd->erase = nand_erase;
 	mtd->point = NULL;
@@ -1371,6 +1370,7 @@
 	mtd->unlock = NULL;
 	mtd->suspend = NULL;
 	mtd->resume = NULL;
+	set_module_owner(mtd);
 
 	/* Return happy */
 	return 0;




More information about the linux-mtd-cvs mailing list