summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Bénard <eric@eukrea.com>2013-10-24 15:26:52 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-10-28 14:15:14 +0100
commit2826ba50ed2e4cc33ac1f6058a3925d058089e5c (patch)
tree682187a139980884c9efd57a42873a10056d929a
parentcf9b0c6927126a4f6e520a242378b5166aaa87a4 (diff)
downloadbarebox-2826ba50ed2e4cc33ac1f6058a3925d058089e5c.tar.gz
barebox-2826ba50ed2e4cc33ac1f6058a3925d058089e5c.tar.xz
bcb: fix compilation
this fix : arch/arm/mach-mxs/bcb.c:268: error: too few arguments to function 'chip->ecc.read_page_raw' arch/arm/mach-mxs/bcb.c:309: error: too few arguments to function 'chip->write_page' caution : this is NOT runtime tested. Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/mach-mxs/bcb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-mxs/bcb.c b/arch/arm/mach-mxs/bcb.c
index af51d24b03..b5d793effc 100644
--- a/arch/arm/mach-mxs/bcb.c
+++ b/arch/arm/mach-mxs/bcb.c
@@ -265,7 +265,7 @@ static int find_fcb(struct mtd_info *mtd, void *ref, int page)
chip->select_chip(mtd, 0);
chip->cmdfunc(mtd, NAND_CMD_READ0, 0x00, page);
- ret = chip->ecc.read_page_raw(mtd, chip, buf);
+ ret = chip->ecc.read_page_raw(mtd, chip, buf, 1, page);
if (ret) {
printf("Failed to read FCB from page %u: %d\n", page, ret);
return ret;
@@ -306,7 +306,7 @@ static int write_fcb(struct mtd_info *mtd, void *buf, int block)
printf("Writing FCB to block %08x\n", block);
chip->select_chip(mtd, 0);
- ret = chip->write_page(mtd, chip, buf, page, 0, 1);
+ ret = chip->write_page(mtd, chip, 0, mtd->erasesize, buf, 1, page, 0, 1);
if (ret) {
printf("Failed to write FCB to block %08x: %d\n", block, ret);
}