OneNAND: Remove unused parameters to onenand_verify_page
authorSteve Sakoman <steve@sakoman.com>
Mon, 11 Aug 2008 18:26:16 +0000 (20:26 +0200)
committerScott Wood <scottwood@freescale.com>
Mon, 11 Aug 2008 20:07:46 +0000 (15:07 -0500)
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: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Dirk Behme <dirk.behme@gmail.com>
drivers/mtd/onenand/onenand_base.c

index d32e38255805ed423f972e0f5c2e793602e60570..a7054aebca6c5730b6f27ea1b558b7014d67dd7f 100644 (file)
@@ -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);