diff options
author | Tom Rini <trini@konsulko.com> | 2016-06-04 08:49:47 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-06-04 08:49:47 -0400 |
commit | 715b3a9b2486e8d7a32365d817c77209b35ee796 (patch) | |
tree | 5daa126a15d2e0d60156664d19adbf451324d098 /drivers/mtd/nand/lpc32xx_nand_slc.c | |
parent | c41c649c2fdec7bf6ef84173597cc3feabdb7828 (diff) | |
parent | 667067faa18334f1e28c01b47530b5cce1b6182f (diff) | |
download | u-boot-715b3a9b2486e8d7a32365d817c77209b35ee796.tar.gz |
Merge git://git.denx.de/u-boot-nand-flash
Diffstat (limited to 'drivers/mtd/nand/lpc32xx_nand_slc.c')
-rw-r--r-- | drivers/mtd/nand/lpc32xx_nand_slc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/mtd/nand/lpc32xx_nand_slc.c b/drivers/mtd/nand/lpc32xx_nand_slc.c index 4e1be36654..daa1e7a501 100644 --- a/drivers/mtd/nand/lpc32xx_nand_slc.c +++ b/drivers/mtd/nand/lpc32xx_nand_slc.c @@ -291,7 +291,7 @@ static void lpc32xx_nand_dma_configure(struct nand_chip *chip, static void lpc32xx_nand_xfer(struct mtd_info *mtd, const u8 *buf, int len, int read) { - struct nand_chip *chip = mtd->priv; + struct nand_chip *chip = mtd_to_nand(mtd); u32 config; int ret; @@ -486,7 +486,8 @@ static int lpc32xx_read_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, /* Reuse the logic from "nand_write_page_hwecc()" */ static int lpc32xx_write_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, - const uint8_t *buf, int oob_required) + const uint8_t *buf, int oob_required, + int page) { int i; uint8_t *ecc_calc = chip->buffers->ecccalc; |