summaryrefslogtreecommitdiff
path: root/target/linux/ar71xx/files/drivers/mtd
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2016-12-29 01:07:34 +0100
committerFelix Fietkau <nbd@nbd.name>2017-01-05 11:09:13 +0100
commitaf79fdbe4af32a287798b579141204bda056b8aa (patch)
tree02daaa893f41208c3ecbbc37b7a5a4b8572a0519 /target/linux/ar71xx/files/drivers/mtd
parente3072599f6a5722421f21c16ddf9a5c27f1b7425 (diff)
downloadmtk-20170518-af79fdbe4af32a287798b579141204bda056b8aa.zip
mtk-20170518-af79fdbe4af32a287798b579141204bda056b8aa.tar.gz
mtk-20170518-af79fdbe4af32a287798b579141204bda056b8aa.tar.bz2
ar71xx: remove a non-upstream spi core patch
- use standard flags instead - remove dead code from the rb4xx spi drivers Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/ar71xx/files/drivers/mtd')
-rw-r--r--target/linux/ar71xx/files/drivers/mtd/nand/rb4xx_nand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/ar71xx/files/drivers/mtd/nand/rb4xx_nand.c b/target/linux/ar71xx/files/drivers/mtd/nand/rb4xx_nand.c
index 5b9841b..981bfcf 100644
--- a/target/linux/ar71xx/files/drivers/mtd/nand/rb4xx_nand.c
+++ b/target/linux/ar71xx/files/drivers/mtd/nand/rb4xx_nand.c
@@ -107,7 +107,7 @@ static unsigned char rb4xx_nand_read_byte(struct mtd_info *mtd)
unsigned char data = 0;
int err;
- err = rb4xx_cpld_read(&data, NULL, 1);
+ err = rb4xx_cpld_read(&data, 1);
if (err) {
pr_err("rb4xx_nand: read data failed, err=%d\n", err);
data = 0xff;
@@ -131,7 +131,7 @@ static void rb4xx_nand_read_buf(struct mtd_info *mtd, unsigned char *buf,
{
int err;
- err = rb4xx_cpld_read(buf, NULL, len);
+ err = rb4xx_cpld_read(buf, len);
if (err)
pr_err("rb4xx_nand: read buf failed, err=%d\n", err);
}