summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorAdrian Hunter <ext-adrian.hunter@nokia.com>2008-01-21 16:13:07 +0100
committerKyungmin Park <kyungmin.park@samsung.com>2008-01-29 09:07:30 +0100
commit9d2f0b7a3de28d06ba4011b835b9a7e772553f0d (patch)
treed48d438d3c94cc867d99be1022f02d8faa4b3f3b /drivers/mtd
parent[MTD] [OneNAND] Do not release chip twice (diff)
downloadlinux-9d2f0b7a3de28d06ba4011b835b9a7e772553f0d.tar.xz
linux-9d2f0b7a3de28d06ba4011b835b9a7e772553f0d.zip
[MTD] [OneNAND] fix call to onenand_verify when writing subpages
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/onenand/onenand_base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c
index e5882b609cf1..799bb1bc3dbc 100644
--- a/drivers/mtd/onenand/onenand_base.c
+++ b/drivers/mtd/onenand/onenand_base.c
@@ -1431,7 +1431,7 @@ static int onenand_write_ops_nolock(struct mtd_info *mtd, loff_t to,
}
/* Only check verify write turn on */
- ret = onenand_verify(mtd, (u_char *) wbuf, to, thislen);
+ ret = onenand_verify(mtd, buf, to, thislen);
if (ret) {
printk(KERN_ERR "onenand_write_ops_nolock: verify failed %d\n", ret);
break;