summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2008-12-30 23:25:01 +0100
committerWolfgang Denk <wd@denx.de>2008-12-30 23:25:01 +0100
commit440db474498d110ef56ba6a4cd8d5ae3fa7b7573 (patch)
treebc621257df7316d4c5a13b01f2a8c4a2e8237aa2
parentb3a974d005820534b5b9a5f65f110f63650ec387 (diff)
parentff49ea8977b56916edd5b1766d9939010e30b181 (diff)
Merge branch 'master' of git://git.denx.de/u-boot-nand-flash
-rw-r--r--drivers/mtd/nand/nand_base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index ba05b762ed..94a65d4e72 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -460,8 +460,8 @@ static int nand_block_checkbad(struct mtd_info *mtd, loff_t ofs, int getchip,
struct nand_chip *chip = mtd->priv;
if (!(chip->options & NAND_BBT_SCANNED)) {
- chip->scan_bbt(mtd);
chip->options |= NAND_BBT_SCANNED;
+ chip->scan_bbt(mtd);
}
if (!chip->bbt)