mtd/include/linux/mtd mtd.h,1.57,1.58

Nicolas Pitre nico at infradead.org
Thu Mar 31 20:59:56 EST 2005


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

Modified Files:
	mtd.h 
Log Message:
Add reboot notifier to Intel NOR flash driver so to make sure
the flash is in array mode whenever we're about to reboot.
This is especially useful to allow "soft" reboot to work which
consists of branching back into the bootloader.

Signed-off-by: Nicolas Pitre <nico at cam.org>


Index: mtd.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/mtd/mtd.h,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -r1.57 -r1.58
--- mtd.h	8 Feb 2005 17:11:15 -0000	1.57
+++ mtd.h	1 Apr 2005 01:59:54 -0000	1.58
@@ -18,6 +18,7 @@
 #include <linux/types.h>
 #include <linux/module.h>
 #include <linux/uio.h>
+#include <linux/notifier.h>
 
 #include <linux/mtd/compatmac.h>
 #include <mtd/mtd-abi.h>
@@ -147,6 +148,8 @@
 	int (*block_isbad) (struct mtd_info *mtd, loff_t ofs);
 	int (*block_markbad) (struct mtd_info *mtd, loff_t ofs);
 
+	struct notifier_block reboot_notifier;  /* default mode before reboot */
+
 	void *priv;
 
 	struct module *owner;





More information about the linux-mtd-cvs mailing list