diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mtd/chips/cfi_cmdset_0002.c | 4 |
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 @@ | |||
13 | * | 13 | * |
14 | * This code is GPL | 14 | * This code is GPL |
15 | * | 15 | * |
16 | * $Id: cfi_cmdset_0002.c,v 1.115 2005/05/20 03:28:23 eric Exp $ | 16 | * $Id: cfi_cmdset_0002.c,v 1.116 2005/05/24 13:29:42 gleixner Exp $ |
17 | * | 17 | * |
18 | */ | 18 | */ |
19 | 19 | ||
@@ -1320,7 +1320,7 @@ static inline int do_erase_oneblock(struct map_info *map, struct flchip *chip, u | |||
1320 | cfi_spin_lock(chip->mutex); | 1320 | cfi_spin_lock(chip->mutex); |
1321 | } | 1321 | } |
1322 | /* Did we succeed? */ | 1322 | /* Did we succeed? */ |
1323 | if (chip_good(map, adr, map_word_ff(map))) { | 1323 | if (!chip_good(map, adr, map_word_ff(map))) { |
1324 | /* reset on all failures. */ | 1324 | /* reset on all failures. */ |
1325 | map_write( map, CMD(0xF0), chip->start ); | 1325 | map_write( map, CMD(0xF0), chip->start ); |
1326 | /* FIXME - should have reset delay before continuing */ | 1326 | /* FIXME - should have reset delay before continuing */ |