aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/onenand/onenand_bbt.c
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2006-11-29 00:03:10 +0000
committerDavid Woodhouse <dwmw2@infradead.org>2006-11-29 00:03:10 +0000
commit103e40f6330306753ba11548d53ff25144216236 (patch)
treedaf0e38e82ccc8fabbc314adcddd6ed93602ade9 /drivers/mtd/onenand/onenand_bbt.c
parent95b93a0cd46682c6d9e8eea803fda510cb6b863a (diff)
parentf4f91ac3c833abbd7181ff2122c6b48a653b4e55 (diff)
downloadkernel_samsung_tuna-103e40f6330306753ba11548d53ff25144216236.zip
kernel_samsung_tuna-103e40f6330306753ba11548d53ff25144216236.tar.gz
kernel_samsung_tuna-103e40f6330306753ba11548d53ff25144216236.tar.bz2
Merge git://git.infradead.org/~kmpark/onenand-mtd-2.6
Diffstat (limited to 'drivers/mtd/onenand/onenand_bbt.c')
-rw-r--r--drivers/mtd/onenand/onenand_bbt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/onenand/onenand_bbt.c b/drivers/mtd/onenand/onenand_bbt.c
index e3822c1..6cceeca 100644
--- a/drivers/mtd/onenand/onenand_bbt.c
+++ b/drivers/mtd/onenand/onenand_bbt.c
@@ -100,6 +100,7 @@ static int create_bbt(struct mtd_info *mtd, uint8_t *buf, struct nand_bbt_descr
bbm->bbt[i >> 3] |= 0x03 << (i & 0x6);
printk(KERN_WARNING "Bad eraseblock %d at 0x%08x\n",
i >> 1, (unsigned int) from);
+ mtd->ecc_stats.badblocks++;
break;
}
}