[MTD] OneNAND: fix oob handling in recent oob patch

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Mon Dec 11 05:59:01 EST 2006


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=66a1e421b98edaa62c7d95cc53cb381efa3fb9bf
Commit:     66a1e421b98edaa62c7d95cc53cb381efa3fb9bf
Parent:     76ab40e465e7615e582b9244a1a967bf3f074061
Author:     Kyungmin Park <kyungmin.park at samsung.com>
AuthorDate: Mon Dec 11 01:34:23 2006 +0000
Committer:  David Woodhouse <dwmw2 at infradead.org>
CommitDate: Mon Dec 11 10:46:20 2006 +0000

    [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 at samsung.com>
    Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
 drivers/mtd/onenand/onenand_base.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c
index c48aa79..63ca61b 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_i
 {
 	BUG_ON(ops->mode != MTD_OOB_PLACE);
 
-	return onenand_do_read_oob(mtd, from + ops->ooboffs, ops->len,
-				   &ops->retlen, ops->oobbuf);
+	return onenand_do_read_oob(mtd, from + ops->ooboffs, ops->ooblen,
+				   &ops->oobretlen, ops->oobbuf);
 }
 
 #ifdef CONFIG_MTD_ONENAND_VERIFY_WRITE
@@ -1114,8 +1114,8 @@ static int onenand_write_oob(struct mtd_
 {
 	BUG_ON(ops->mode != MTD_OOB_PLACE);
 
-	return onenand_do_write_oob(mtd, to + ops->ooboffs, ops->len,
-				    &ops->retlen, ops->oobbuf);
+	return onenand_do_write_oob(mtd, to + ops->ooboffs, ops->ooblen,
+				    &ops->oobretlen, ops->oobbuf);
 }
 
 /**



More information about the linux-mtd-cvs mailing list