summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@tglx.tec.linutronix.de>2005-05-24 15:33:49 +0200
committerThomas Gleixner <tglx@mtd.linutronix.de>2005-05-24 15:33:49 +0200
commit22fd9a8750bcad4999768aafc8fbd8a4bd6f5aa1 (patch)
treeda37e49d5731f9dc8d58ad04a38fd137d8830f79 /drivers
parentf08276136bdc8607c1da493279569beb9859b133 (diff)
downloadlinux-22fd9a8750bcad4999768aafc8fbd8a4bd6f5aa1.tar.gz
linux-22fd9a8750bcad4999768aafc8fbd8a4bd6f5aa1.tar.bz2
linux-22fd9a8750bcad4999768aafc8fbd8a4bd6f5aa1.zip
[MTD] cfi_cmdset_0002: Fix broken status check
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mtd/chips/cfi_cmdset_0002.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/chips/cfi_cmdset_0002.c b/drivers/mtd/chips/cfi_cmdset_0002.c
index 59849236f526..49cd81207137 100644
--- a/drivers/mtd/chips/cfi_cmdset_0002.c
+++ b/drivers/mtd/chips/cfi_cmdset_0002.c
@@ -13,7 +13,7 @@
*
* This code is GPL
*
- * $Id: cfi_cmdset_0002.c,v 1.115 2005/05/20 03:28:23 eric Exp $
+ * $Id: cfi_cmdset_0002.c,v 1.116 2005/05/24 13:29:42 gleixner Exp $
*
*/
@@ -1320,7 +1320,7 @@ static inline int do_erase_oneblock(struct map_info *map, struct flchip *chip, u
cfi_spin_lock(chip->mutex);
}
/* Did we succeed? */
- if (chip_good(map, adr, map_word_ff(map))) {
+ if (!chip_good(map, adr, map_word_ff(map))) {
/* reset on all failures. */
map_write( map, CMD(0xF0), chip->start );
/* FIXME - should have reset delay before continuing */