summaryrefslogtreecommitdiff
path: root/target/linux/ar71xx/files/drivers
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-10-27 07:57:57 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-10-27 07:57:57 +0000
commit973eda60779017bef8fc1b94344dbe3b0eaec081 (patch)
treee7f089dad200d57e52ef3c8a436333b2d8c22183 /target/linux/ar71xx/files/drivers
parent28f3adc2ed8af108431e037e594c3b4213393845 (diff)
downloadmtk-20170518-973eda60779017bef8fc1b94344dbe3b0eaec081.zip
mtk-20170518-973eda60779017bef8fc1b94344dbe3b0eaec081.tar.gz
mtk-20170518-973eda60779017bef8fc1b94344dbe3b0eaec081.tar.bz2
ar71xx: use mtd_read in tplinkpart
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 33950
Diffstat (limited to 'target/linux/ar71xx/files/drivers')
-rw-r--r--target/linux/ar71xx/files/drivers/mtd/tplinkpart.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/ar71xx/files/drivers/mtd/tplinkpart.c b/target/linux/ar71xx/files/drivers/mtd/tplinkpart.c
index 674df66..cabb960 100644
--- a/target/linux/ar71xx/files/drivers/mtd/tplinkpart.c
+++ b/target/linux/ar71xx/files/drivers/mtd/tplinkpart.c
@@ -60,8 +60,8 @@ tplink_read_header(struct mtd_info *mtd, size_t offset)
goto err;
header_len = sizeof(struct tplink_fw_header);
- ret = mtd->read(mtd, offset, header_len, &retlen,
- (unsigned char *) header);
+ ret = mtd_read(mtd, offset, header_len, &retlen,
+ (unsigned char *) header);
if (ret)
goto err_free_header;
@@ -91,8 +91,8 @@ static int tplink_check_rootfs_magic(struct mtd_info *mtd, size_t offset)
size_t retlen;
int ret;
- ret = mtd->read(mtd, offset, sizeof(magic), &retlen,
- (unsigned char *) &magic);
+ ret = mtd_read(mtd, offset, sizeof(magic), &retlen,
+ (unsigned char *) &magic);
if (ret)
return ret;