diff options
Diffstat (limited to 'drivers/mtd/nand/gpmi-nand/gpmi-nand.c')
-rw-r--r-- | drivers/mtd/nand/gpmi-nand/gpmi-nand.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c index 9ec51cec2e14..d85a2c1fad54 100644 --- a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c +++ b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c | |||
@@ -842,7 +842,7 @@ static void block_mark_swapping(struct gpmi_nand_data *this, | |||
842 | } | 842 | } |
843 | 843 | ||
844 | static int gpmi_ecc_read_page(struct mtd_info *mtd, struct nand_chip *chip, | 844 | static int gpmi_ecc_read_page(struct mtd_info *mtd, struct nand_chip *chip, |
845 | uint8_t *buf, int page) | 845 | uint8_t *buf, int oob_required, int page) |
846 | { | 846 | { |
847 | struct gpmi_nand_data *this = chip->priv; | 847 | struct gpmi_nand_data *this = chip->priv; |
848 | struct bch_geometry *nfc_geo = &this->bch_geometry; | 848 | struct bch_geometry *nfc_geo = &this->bch_geometry; |
@@ -928,8 +928,8 @@ exit_nfc: | |||
928 | return ret; | 928 | return ret; |
929 | } | 929 | } |
930 | 930 | ||
931 | static void gpmi_ecc_write_page(struct mtd_info *mtd, | 931 | static void gpmi_ecc_write_page(struct mtd_info *mtd, struct nand_chip *chip, |
932 | struct nand_chip *chip, const uint8_t *buf) | 932 | const uint8_t *buf, int oob_required) |
933 | { | 933 | { |
934 | struct gpmi_nand_data *this = chip->priv; | 934 | struct gpmi_nand_data *this = chip->priv; |
935 | struct bch_geometry *nfc_geo = &this->bch_geometry; | 935 | struct bch_geometry *nfc_geo = &this->bch_geometry; |
@@ -1309,7 +1309,7 @@ static int mx23_write_transcription_stamp(struct gpmi_nand_data *this) | |||
1309 | /* Write the first page of the current stride. */ | 1309 | /* Write the first page of the current stride. */ |
1310 | dev_dbg(dev, "Writing an NCB fingerprint in page 0x%x\n", page); | 1310 | dev_dbg(dev, "Writing an NCB fingerprint in page 0x%x\n", page); |
1311 | chip->cmdfunc(mtd, NAND_CMD_SEQIN, 0x00, page); | 1311 | chip->cmdfunc(mtd, NAND_CMD_SEQIN, 0x00, page); |
1312 | chip->ecc.write_page_raw(mtd, chip, buffer); | 1312 | chip->ecc.write_page_raw(mtd, chip, buffer, 0); |
1313 | chip->cmdfunc(mtd, NAND_CMD_PAGEPROG, -1, -1); | 1313 | chip->cmdfunc(mtd, NAND_CMD_PAGEPROG, -1, -1); |
1314 | 1314 | ||
1315 | /* Wait for the write to finish. */ | 1315 | /* Wait for the write to finish. */ |