Skip to content
Snippets Groups Projects
Commit 4d57b0fb authored by Steve Sakoman's avatar Steve Sakoman Committed by Scott Wood
Browse files

OneNAND: Remove unused parameters to onenand_verify_page


The block and page parameters of onenand_verify_page() are not used. This causes a compiler error when CONFIG_MTD_ONENAND_VERIFY_WRITE is enabled.

Signed-off-by: default avatarSteve Sakoman <steve@sakoman.com>
Signed-off-by: default avatarDirk Behme <dirk.behme@gmail.com>
parent 81c4dc39
No related branches found
No related tags found
No related merge requests found
...@@ -680,13 +680,11 @@ int onenand_read_oob(struct mtd_info *mtd, loff_t from, size_t len, ...@@ -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 * onenand_verify_page - [GENERIC] verify the chip contents after a write
* @param mtd MTD device structure * @param mtd MTD device structure
* @param buf the databuffer to verify * @param buf the databuffer to verify
* @param block block address
* @param page page address
* *
* Check DataRAM area directly * Check DataRAM area directly
*/ */
static int onenand_verify_page(struct mtd_info *mtd, u_char * buf, 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; struct onenand_chip *this = mtd->priv;
void __iomem *dataram0, *dataram1; void __iomem *dataram0, *dataram1;
...@@ -783,7 +781,7 @@ static int onenand_write_ecc(struct mtd_info *mtd, loff_t to, size_t len, ...@@ -783,7 +781,7 @@ static int onenand_write_ecc(struct mtd_info *mtd, loff_t to, size_t len,
written += thislen; written += thislen;
/* Only check verify write turn on */ /* 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) { if (ret) {
MTDDEBUG (MTD_DEBUG_LEVEL0, MTDDEBUG (MTD_DEBUG_LEVEL0,
"onenand_write_ecc: verify failed %d\n", ret); "onenand_write_ecc: verify failed %d\n", ret);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment