ramips: fix compile warning in MT7621 NAND driver

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2017-10-16 12:07:31 +02:00
parent 2e9f3c6225
commit e6fd17d04c
1 changed files with 1 additions and 1 deletions

View File

@ -2667,7 +2667,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
+}
+
+static int
+mtk_nand_write_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, const uint8_t * buf, int oob_required)
+mtk_nand_write_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, const uint8_t * buf, int oob_required, int page)
+{
+ mtk_nand_write_buf(mtd, buf, mtd->writesize);
+ mtk_nand_write_buf(mtd, chip->oob_poi, mtd->oobsize);