mtd/drivers/mtd/chips amd_flash.c,1.23,1.24

David Woodhouse dwmw2 at infradead.org
Mon Jul 12 09:34:33 EDT 2004


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

Modified Files:
	amd_flash.c 
Log Message:
Merge from 2.6: NULL and __module_get()


Index: amd_flash.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/chips/amd_flash.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- amd_flash.c	12 Jun 2003 09:24:13 -0000	1.23
+++ amd_flash.c	12 Jul 2004 13:34:30 -0000	1.24
@@ -718,7 +718,7 @@
 		       "memory for MTD erase region info\n", map->name);
 		kfree(mtd);
 		map->fldrv_priv = NULL;
-		return 0;
+		return NULL;
 	}
 
 	reg_idx = 0;
@@ -780,8 +780,8 @@
 	map->fldrv_priv = private;
 
 	map->fldrv = &amd_flash_chipdrv;
-	MOD_INC_USE_COUNT;
 
+	__module_get(THIS_MODULE);
 	return mtd;
 }
 





More information about the linux-mtd-cvs mailing list