[PATCH v4] mtdchar: fix usage of mtd_ooblayout_ecc()