mtd/include/linux/mtd mtd.h,1.54,1.55

David Woodhouse dwmw2 at infradead.org
Mon Aug 9 09:19:48 EDT 2004


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

Modified Files:
	mtd.h 
Log Message:
Change alls driver to mtd_erase_callback, make partitions non-modular.

Index: mtd.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/mtd/mtd.h,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -r1.54 -r1.55
--- mtd.h	15 Jul 2004 01:13:12 -0000	1.54
+++ mtd.h	9 Aug 2004 13:19:45 -0000	1.55
@@ -192,6 +192,17 @@
 #define MTD_WRITEOOB(mtd, args...) (*(mtd->write_oob))(mtd, args)
 #define MTD_SYNC(mtd) do { if (mtd->sync) (*(mtd->sync))(mtd);  } while (0) 
 
+
+#ifdef CONFIG_MTD_PARTITIONS
+void mtd_erase_callback(struct erase_info *instr);
+#else
+static inline void mtd_erase_callback(struct erase_info *instr)
+{
+	if (instr->callback)
+		instr->callback(instr);
+}
+#endif
+
 /*
  * Debugging macro and defines
  */





More information about the linux-mtd-cvs mailing list