From: Brian Norris Date: Sat, 10 Aug 2013 08:01:05 +0000 (-0700) Subject: nand: docg4: use nand_base's default BBT scan X-Git-Tag: v3.13-rc1~98^2~95 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=2ee41fa0bad874e9fef3743979d297f97b7eda49;p=uclinux-h8%2Flinux.git nand: docg4: use nand_base's default BBT scan There's no point in the low level driver doing the work that nand_base already is doing; just let nand_base set the default BBT scanning function. Signed-off-by: Brian Norris Acked-by: Mike Dunn --- diff --git a/drivers/mtd/nand/docg4.c b/drivers/mtd/nand/docg4.c index 548db2389fab..7c38b8ad4404 100644 --- a/drivers/mtd/nand/docg4.c +++ b/drivers/mtd/nand/docg4.c @@ -1239,7 +1239,6 @@ static void __init init_mtd_structs(struct mtd_info *mtd) nand->block_markbad = docg4_block_markbad; nand->read_buf = docg4_read_buf; nand->write_buf = docg4_write_buf16; - nand->scan_bbt = nand_default_bbt; nand->erase_cmd = docg4_erase_block; nand->ecc.read_page = docg4_read_page; nand->ecc.write_page = docg4_write_page;