mtd/include/linux/mtd map.h,1.31,1.32

David Woodhouse dwmw2 at infradead.org
Wed May 21 07:42:10 EDT 2003


Update of /home/cvs/mtd/include/linux/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv17345/include/linux/mtd

Modified Files:
	map.h 
Log Message:
Take map_destroy() out of line, fix up module count stuff for 2.5


Index: map.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/mtd/map.h,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- map.h	16 May 2003 18:53:42 -0000	1.31
+++ map.h	21 May 2003 11:42:07 -0000	1.32
@@ -80,24 +80,7 @@
 void unregister_mtd_chip_driver(struct mtd_chip_driver *);
 
 struct mtd_info *do_map_probe(const char *name, struct map_info *map);
-
-
-/*
- * Destroy an MTD device which was created for a map device.
- * Make sure the MTD device is already unregistered before calling this
- */
-static inline void map_destroy(struct mtd_info *mtd)
-{
-	struct map_info *map = mtd->priv;
-
-	if (map->fldrv->destroy)
-		map->fldrv->destroy(mtd);
-#ifdef CONFIG_MODULES
-	if (map->fldrv->module)
-		__MOD_DEC_USE_COUNT(map->fldrv->module);
-#endif
-	kfree(mtd);
-}
+void map_destroy(struct mtd_info *mtd);
 
 #define ENABLE_VPP(map) do { if(map->set_vpp) map->set_vpp(map, 1); } while(0)
 #define DISABLE_VPP(map) do { if(map->set_vpp) map->set_vpp(map, 0); } while(0)




More information about the linux-mtd-cvs mailing list