/* onenand_memory_bbt -  create a memory based bad block table  */
static int onenand_memory_bbt(struct mtd_info *mtd, struct nand_bbt_descr *bd)
/* onenand_memory_bbt -  create a memory based bad block table  */
static int onenand_memory_bbt(struct mtd_info *mtd, struct nand_bbt_descr *bd)
{
	unsigned char data_buf[MAX_ONENAND_PAGESIZE];
	bd->options &= ~NAND_BBT_SCANEMPTY;
	return create_bbt(mtd, data_buf, bd, -1);
}