mtd/drivers/mtd/nand edb7312.c,1.2,1.3

Marius Groeger mag at infradead.org
Thu Jun 6 08:58:19 EDT 2002


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

Modified Files:
	edb7312.c 
Log Message:
Fixes by Armin Schindler <acs at sysgo.de>:
- Fix kfree() in cleanup function to free the data_cache
- Fix MODULE_AUTHOR string
- Remove #ifdef MODULE


Index: edb7312.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/edb7312.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- edb7312.c	30 Apr 2002 15:11:48 -0000	1.2
+++ edb7312.c	6 Jun 2002 12:58:16 -0000	1.3
@@ -227,7 +227,6 @@
 /*
  * Clean up routine
  */
-#ifdef MODULE
 static void __exit ep7312_cleanup (void)
 {
 	struct nand_chip *this = (struct nand_chip *) &ep7312_mtd[1];
@@ -237,14 +236,13 @@
 	
 	/* Free internal data buffer */
 	kfree (this->data_buf);
-	kfree (this->page_cache);
+	kfree (this->data_cache);
 	
 	/* Free the MTD device structure */
 	kfree (ep7312_mtd);
 }
 module_exit(ep7312_cleanup);
-#endif
 
 MODULE_LICENSE("GPL");
-MODULE_AUTHOR("Marius Groeger <mag at sysgo.de");
+MODULE_AUTHOR("Marius Groeger <mag at sysgo.de>");
 MODULE_DESCRIPTION("MTD map driver for Cogent EDB7312 board");





More information about the linux-mtd-cvs mailing list