aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorKyungmin Park <kyungmin.park@samsung.com>2006-12-10 20:34:23 -0500
committerDavid Woodhouse <dwmw2@infradead.org>2006-12-11 05:46:20 -0500
commit66a1e421b98edaa62c7d95cc53cb381efa3fb9bf (patch)
tree7c7e8ac331238ea634fffb367600964c5b14cbeb /drivers
parent76ab40e465e7615e582b9244a1a967bf3f074061 (diff)
[MTD] OneNAND: fix oob handling in recent oob patch
There are missing place in recent MTD oob patch http://git.infradead.org/?p=mtd-2.6.git;a=commitdiff;h=7014568bad55c20b7ee4f439d78c9e875912d51f Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers')
-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/**