cfi_flash: Fix logical continuations
[oweals/u-boot.git] / drivers / mtd / nand / vf610_nfc.c
index a4d5a6205f38566f3647a6b05ca237229104a877..dd53f2bedb341ac956b433a1d64a771fb1ae183e 100644 (file)
@@ -26,7 +26,7 @@
 #include <malloc.h>
 
 #include <linux/mtd/mtd.h>
-#include <linux/mtd/nand.h>
+#include <linux/mtd/rawnand.h>
 #include <linux/mtd/partitions.h>
 
 #include <nand.h>
@@ -146,7 +146,6 @@ enum vf610_nfc_alt_buf {
 };
 
 struct vf610_nfc {
-       struct mtd_info *mtd;
        struct nand_chip chip;
        void __iomem *regs;
        uint buf_offset;
@@ -607,7 +606,7 @@ static int vf610_nfc_read_page(struct mtd_info *mtd, struct nand_chip *chip,
  * ECC will be calculated automatically
  */
 static int vf610_nfc_write_page(struct mtd_info *mtd, struct nand_chip *chip,
-                              const uint8_t *buf, int oob_required)
+                              const uint8_t *buf, int oob_required, int page)
 {
        struct vf610_nfc *nfc = mtd_to_nfc(mtd);