diff options
author | Wolfgang Denk <wd@denx.de> | 2008-08-12 00:13:57 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-08-12 00:13:57 +0200 |
commit | b315ad8f0aa0cf68ccc895d41c933d777fdaba8e (patch) | |
tree | 59ae359dfb7d0ce54020652f51394b81d9b57d7e /drivers/mtd/onenand/onenand_base.c | |
parent | 902ca09246039964d59bbcb519b1e1b5aed01308 (diff) | |
parent | 4d57b0fb2927d4f50d834884b4ec4a7ca01708b0 (diff) | |
download | u-boot-imx-b315ad8f0aa0cf68ccc895d41c933d777fdaba8e.zip u-boot-imx-b315ad8f0aa0cf68ccc895d41c933d777fdaba8e.tar.gz u-boot-imx-b315ad8f0aa0cf68ccc895d41c933d777fdaba8e.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot-nand-flash
Diffstat (limited to 'drivers/mtd/onenand/onenand_base.c')
-rw-r--r-- | drivers/mtd/onenand/onenand_base.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c index d32e382..a7054ae 100644 --- a/drivers/mtd/onenand/onenand_base.c +++ b/drivers/mtd/onenand/onenand_base.c @@ -680,13 +680,11 @@ int onenand_read_oob(struct mtd_info *mtd, loff_t from, size_t len, * onenand_verify_page - [GENERIC] verify the chip contents after a write * @param mtd MTD device structure * @param buf the databuffer to verify - * @param block block address - * @param page page address * * Check DataRAM area directly */ static int onenand_verify_page(struct mtd_info *mtd, u_char * buf, - loff_t addr, int block, int page) + loff_t addr) { struct onenand_chip *this = mtd->priv; void __iomem *dataram0, *dataram1; @@ -783,7 +781,7 @@ static int onenand_write_ecc(struct mtd_info *mtd, loff_t to, size_t len, written += thislen; /* Only check verify write turn on */ - ret = onenand_verify_page(mtd, (u_char *) buf, to, block, page); + ret = onenand_verify_page(mtd, (u_char *) buf, to); if (ret) { MTDDEBUG (MTD_DEBUG_LEVEL0, "onenand_write_ecc: verify failed %d\n", ret); |