/* Check if the block is marked as reserved.  */
static int nand_block_isreserved(struct mtd_info *mtd, loff_t ofs)
/* Check if the block is marked as reserved.  */
static int nand_block_isreserved(struct mtd_info *mtd, loff_t ofs)
{
	struct nand_chip *chip = mtd_to_nand(mtd);
	if (!chip->bbt)
		return 0;
	return nand_isreserved_bbt(mtd, ofs);
}