/* 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)
{
	struct onenand_chip *this = mtd->priv;
        bd->options &= ~NAND_BBT_SCANEMPTY;
	return create_bbt(mtd, this->page_buf, bd, -1);
}