diff options
author | Nicolas Pitre <nico@cam.org> | 2005-03-31 20:59:56 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@mtd.linutronix.de> | 2005-05-23 07:06:28 -0400 |
commit | 963a6fb0a0d336d0513083b7e4b5c3ff9d6d2061 (patch) | |
tree | d7f6ccfbef2fe150d3073d17d333f90d1ce304a6 /include/linux/mtd/mtd.h | |
parent | 8048d2fc38c9559ce37b46c21fa734c5cb9bcdb2 (diff) |
[MTD] Add reboot notifier to Intel NOR flash driver
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@cam.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux/mtd/mtd.h')
-rw-r--r-- | include/linux/mtd/mtd.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h index 3aab1b8729e0..f574cd498816 100644 --- a/include/linux/mtd/mtd.h +++ b/include/linux/mtd/mtd.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * $Id: mtd.h,v 1.57 2005/02/08 17:11:15 nico Exp $ | 2 | * $Id: mtd.h,v 1.58 2005/04/01 01:59:54 nico Exp $ |
3 | * | 3 | * |
4 | * Copyright (C) 1999-2003 David Woodhouse <dwmw2@infradead.org> et al. | 4 | * Copyright (C) 1999-2003 David Woodhouse <dwmw2@infradead.org> et al. |
5 | * | 5 | * |
@@ -18,6 +18,7 @@ | |||
18 | #include <linux/types.h> | 18 | #include <linux/types.h> |
19 | #include <linux/module.h> | 19 | #include <linux/module.h> |
20 | #include <linux/uio.h> | 20 | #include <linux/uio.h> |
21 | #include <linux/notifier.h> | ||
21 | 22 | ||
22 | #include <linux/mtd/compatmac.h> | 23 | #include <linux/mtd/compatmac.h> |
23 | #include <mtd/mtd-abi.h> | 24 | #include <mtd/mtd-abi.h> |
@@ -147,6 +148,8 @@ struct mtd_info { | |||
147 | int (*block_isbad) (struct mtd_info *mtd, loff_t ofs); | 148 | int (*block_isbad) (struct mtd_info *mtd, loff_t ofs); |
148 | int (*block_markbad) (struct mtd_info *mtd, loff_t ofs); | 149 | int (*block_markbad) (struct mtd_info *mtd, loff_t ofs); |
149 | 150 | ||
151 | struct notifier_block reboot_notifier; /* default mode before reboot */ | ||
152 | |||
150 | void *priv; | 153 | void *priv; |
151 | 154 | ||
152 | struct module *owner; | 155 | struct module *owner; |