aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/onenand
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/onenand')
-rw-r--r--drivers/mtd/onenand/onenand_base.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c
index c48aa79ef5c9..63ca61b83bf5 100644
--- a/drivers/mtd/onenand/onenand_base.c
+++ b/drivers/mtd/onenand/onenand_base.c
@@ -871,8 +871,8 @@ static int onenand_read_oob(struct mtd_info *mtd, loff_t from,
871{ 871{
872 BUG_ON(ops->mode != MTD_OOB_PLACE); 872 BUG_ON(ops->mode != MTD_OOB_PLACE);
873 873
874 return onenand_do_read_oob(mtd, from + ops->ooboffs, ops->len, 874 return onenand_do_read_oob(mtd, from + ops->ooboffs, ops->ooblen,
875 &ops->retlen, ops->oobbuf); 875 &ops->oobretlen, ops->oobbuf);
876} 876}
877 877
878#ifdef CONFIG_MTD_ONENAND_VERIFY_WRITE 878#ifdef CONFIG_MTD_ONENAND_VERIFY_WRITE
@@ -1114,8 +1114,8 @@ static int onenand_write_oob(struct mtd_info *mtd, loff_t to,
1114{ 1114{
1115 BUG_ON(ops->mode != MTD_OOB_PLACE); 1115 BUG_ON(ops->mode != MTD_OOB_PLACE);
1116 1116
1117 return onenand_do_write_oob(mtd, to + ops->ooboffs, ops->len, 1117 return onenand_do_write_oob(mtd, to + ops->ooboffs, ops->ooblen,
1118 &ops->retlen, ops->oobbuf); 1118 &ops->oobretlen, ops->oobbuf);
1119} 1119}
1120 1120
1121/** 1121/**