summaryrefslogtreecommitdiff
path: root/drivers/mtd/nand/pxa3xx_nand.c
diff options
context:
space:
mode:
authorScott Wood <oss@buserror.net>2016-05-30 13:57:57 -0500
committerScott Wood <oss@buserror.net>2016-06-03 20:27:48 -0500
commit81c772521ff26054a3fe75efa87d8daeae83e9b4 (patch)
tree8037d16f2aa0ba9a23625b16a412a2eca7df7a41 /drivers/mtd/nand/pxa3xx_nand.c
parent17cb4b8f327eb983cef7c510fcf77f1635a00e48 (diff)
downloadu-boot-imx-81c772521ff26054a3fe75efa87d8daeae83e9b4.zip
u-boot-imx-81c772521ff26054a3fe75efa87d8daeae83e9b4.tar.gz
u-boot-imx-81c772521ff26054a3fe75efa87d8daeae83e9b4.tar.bz2
mtd: nand: Add page argument to write_page() etc.
This change is part of the Linux 4.6 sync. It is being done before the main sync patch in order to make it easier to address the issue across all NAND drivers (many/most of which do not closely track their Linux counterparts) separately from other merge issues. Signed-off-by: Scott Wood <oss@buserror.net>
Diffstat (limited to 'drivers/mtd/nand/pxa3xx_nand.c')
-rw-r--r--drivers/mtd/nand/pxa3xx_nand.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_nand.c
index 03bf046..d3ac539 100644
--- a/drivers/mtd/nand/pxa3xx_nand.c
+++ b/drivers/mtd/nand/pxa3xx_nand.c
@@ -1081,7 +1081,8 @@ static void nand_cmdfunc_extended(struct mtd_info *mtd,
}
static int pxa3xx_nand_write_page_hwecc(struct mtd_info *mtd,
- struct nand_chip *chip, const uint8_t *buf, int oob_required)
+ struct nand_chip *chip, const uint8_t *buf, int oob_required,
+ int page)
{
chip->write_buf(mtd, buf, mtd->writesize);
chip->write_buf(mtd, chip->oob_poi, mtd->oobsize);