[PATCH 06/12] mtd: nand_bbt: use erase() and is_bad_bbm() hook in BBT

2015-09-25 Thread peterpandong
Since NAND already create its nand_bbt struct, we can use erase() hook instead of call nand_erase_nand() directly. Also, we can use is_bad_bbm() to avoid passing badblock_pattern to BBT. Signed-off-by: Brian Norris [Peter: remove @buf in create_bbt()] Signed-off-by: Peter Pan ---

[PATCH 06/12] mtd: nand_bbt: use erase() and is_bad_bbm() hook in BBT

2015-09-25 Thread peterpandong
Since NAND already create its nand_bbt struct, we can use erase() hook instead of call nand_erase_nand() directly. Also, we can use is_bad_bbm() to avoid passing badblock_pattern to BBT. Signed-off-by: Brian Norris [Peter: remove @buf in create_bbt()] Signed-off-by: