/* mtd_ooblayout_ecc - Get the OOB region definition of a specific ECC section @mtd: MTD device structure  */
int mtd_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobecc)
/* mtd_ooblayout_ecc - Get the OOB region definition of a specific ECC section @mtd: MTD device structure  */
int mtd_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobecc)
{
	memset(oobecc, 0, sizeof(*oobecc));
	if (!mtd || section < 0)
		return -EINVAL;
	if (!mtd->ooblayout || !mtd->ooblayout->ecc)
		return -ENOTSUPP;
	return mtd->ooblayout->ecc(mtd, section, oobecc);
}