diff options
author | Yang Ruirui <ruirui.r.yang@tieto.com> | 2011-03-13 21:50:56 -0400 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-03-25 11:04:18 -0400 |
commit | e21fa86ad0ffa2c292b104ea19bdaa46ceab7105 (patch) | |
tree | 9baf6f805b94d26196d001f883197843fde65cba /drivers/mtd/mtdswap.c | |
parent | fc2ff592b5b41f3f32e790dd124eeb3bc80706c8 (diff) |
mtdswap: kill strict error handling option
As Artem Bityutskiy suggested: this option is controversial, as we
do not really have any prove it is useful. And it is too much to have
it as a config parameter. So, better kill it and let the real mtdswap
users decide whether it is needed or not.
Signed-off-by: Yang Ruirui<ruirui.r.yang@tieto.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd/mtdswap.c')
-rw-r--r-- | drivers/mtd/mtdswap.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/mtd/mtdswap.c b/drivers/mtd/mtdswap.c index a65594fee4a3..dc4b136800b8 100644 --- a/drivers/mtd/mtdswap.c +++ b/drivers/mtd/mtdswap.c | |||
@@ -156,12 +156,6 @@ struct mtdswap_oobdata { | |||
156 | #define MTDSWAP_ERASE_RETRIES 3 /* Before marking erase block bad */ | 156 | #define MTDSWAP_ERASE_RETRIES 3 /* Before marking erase block bad */ |
157 | #define MTDSWAP_IO_RETRIES 3 | 157 | #define MTDSWAP_IO_RETRIES 3 |
158 | 158 | ||
159 | #ifdef CONFIG_MTD_SWAP_STRICT | ||
160 | #define MTDSWAP_STRICT 1 | ||
161 | #else | ||
162 | #define MTDSWAP_STRICT 0 | ||
163 | #endif | ||
164 | |||
165 | enum { | 159 | enum { |
166 | MTDSWAP_SCANNED_CLEAN, | 160 | MTDSWAP_SCANNED_CLEAN, |
167 | MTDSWAP_SCANNED_DIRTY, | 161 | MTDSWAP_SCANNED_DIRTY, |
@@ -575,7 +569,7 @@ retry: | |||
575 | 569 | ||
576 | ret = mtd->erase(mtd, &erase); | 570 | ret = mtd->erase(mtd, &erase); |
577 | if (ret) { | 571 | if (ret) { |
578 | if (retries++ < MTDSWAP_ERASE_RETRIES && !MTDSWAP_STRICT) { | 572 | if (retries++ < MTDSWAP_ERASE_RETRIES) { |
579 | dev_warn(d->dev, | 573 | dev_warn(d->dev, |
580 | "erase of erase block %#llx on %s failed", | 574 | "erase of erase block %#llx on %s failed", |
581 | erase.addr, mtd->name); | 575 | erase.addr, mtd->name); |