summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2006-10-22 02:47:45 +0200
committerDavid Woodhouse <dwmw2@infradead.org>2006-10-22 02:47:45 +0200
commit784f4d5e66ac1d962091e08fe5a4b238ed8c793d (patch)
tree3bf9163bca4eeb00652b6aaa306b74ae23392418 /drivers/mtd
parent[MTD] NAND: Combined oob buffer so it's contiguous with data (diff)
downloadlinux-784f4d5e66ac1d962091e08fe5a4b238ed8c793d.tar.xz
linux-784f4d5e66ac1d962091e08fe5a4b238ed8c793d.zip
[MTD] NAND: Correct setting of chip->oob_poi OOB buffer
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/nand_base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index 29090c6d4819..f23ab2c70433 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -2344,7 +2344,7 @@ int nand_scan_tail(struct mtd_info *mtd)
return -ENOMEM;
/* Set the internal oob buffer location, just after the page data */
- chip->oob_poi = chip->buffers + mtd->writesize;
+ chip->oob_poi = chip->buffers->databuf + mtd->writesize;
/*
* If no default placement scheme is given, select an appropriate one