aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorPaul Wassi <p.wassi@gmx.at>2016-11-16 07:25:10 +0100
committerJohn Crispin <john@phrozen.org>2016-11-18 21:57:19 +0100
commit6e65576f2d808513148bc8b6e399e62805c3fe03 (patch)
tree9c3a2dc34ba6bebb9ba9867ded341fdaa8fc44c5 /target/linux
parent16adf49620e327feefd9c4087ea175f0759e4258 (diff)
downloadupstream-6e65576f2d808513148bc8b6e399e62805c3fe03.tar.gz
upstream-6e65576f2d808513148bc8b6e399e62805c3fe03.tar.bz2
upstream-6e65576f2d808513148bc8b6e399e62805c3fe03.zip
ar71xx: fix drivers/mtd/nand/ar934x_nfc.c
Fix the incorrect usage of ar934x_nfc_write_page and ar934x_nfc_write_page_raw. Add *page* in the argument list and remove the local variable. Signed-off-by: Paul Wassi <p.wassi@gmx.at>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ar71xx/files/drivers/mtd/nand/ar934x_nfc.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/target/linux/ar71xx/files/drivers/mtd/nand/ar934x_nfc.c b/target/linux/ar71xx/files/drivers/mtd/nand/ar934x_nfc.c
index 90ba03a735..a47fc0468e 100644
--- a/target/linux/ar71xx/files/drivers/mtd/nand/ar934x_nfc.c
+++ b/target/linux/ar71xx/files/drivers/mtd/nand/ar934x_nfc.c
@@ -983,14 +983,11 @@ ar934x_nfc_read_page(struct mtd_info *mtd, struct nand_chip *chip,
static int
ar934x_nfc_write_page_raw(struct mtd_info *mtd, struct nand_chip *chip,
- const u8 *buf, int oob_required)
+ const u8 *buf, int oob_required, int page)
{
struct ar934x_nfc *nfc = mtd_to_ar934x_nfc(mtd);
- int page;
int len;
- page = nfc->seqin_page_addr;
-
nfc_dbg(nfc, "write_page_raw: page:%d oob:%d\n", page, oob_required);
memcpy(nfc->buf, buf, mtd->writesize);
@@ -1006,14 +1003,11 @@ ar934x_nfc_write_page_raw(struct mtd_info *mtd, struct nand_chip *chip,
static int
ar934x_nfc_write_page(struct mtd_info *mtd, struct nand_chip *chip,
- const u8 *buf, int oob_required)
+ const u8 *buf, int oob_required, int page)
{
struct ar934x_nfc *nfc = mtd_to_ar934x_nfc(mtd);
- int page;
int err;
- page = nfc->seqin_page_addr;
-
nfc_dbg(nfc, "write_page: page:%d oob:%d\n", page, oob_required);
/* write OOB first */