/* The function creates a memory based bbt by scanning the device for manufacturer / software marked good / bad blocks  */
static int nand_memory_bbt(struct mtd_info *mtd, struct nand_bbt_descr *bd)
/* The function creates a memory based bbt by scanning the device for manufacturer / software marked good / bad blocks  */
static int nand_memory_bbt(struct mtd_info *mtd, struct nand_bbt_descr *bd)
{
	struct nand_chip *this = mtd->priv;
	bd->options &= ~NAND_BBT_SCANEMPTY;
	return create_bbt(mtd, this->buffers->databuf, bd, -1);
}