/* BBT marker is in the first page, no OOB.  */
static int scan_read_raw_data(struct mtd_info *mtd, uint8_t *buf, loff_t offs, struct nand_bbt_descr *td)
/* BBT marker is in the first page, no OOB.  */
static int scan_read_raw_data(struct mtd_info *mtd, uint8_t *buf, loff_t offs, struct nand_bbt_descr *td)
{
	size_t retlen;
	size_t len;
	len = td->len;
	if (td->options & NAND_BBT_VERSION)
		len++;
	return mtd->read(mtd, offs, len, &retlen, buf);
}