aboutsummaryrefslogtreecommitdiffstats
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
commit71b8bf1a54adbb15136f2453b98561f106952a5e (patch)
treea4c075a832fd9374677563358aeb2585bd6572c9
parent68bb4e22cc170463b7bfd44acd5bb479efbffb14 (diff)
downloadupstream-71b8bf1a54adbb15136f2453b98561f106952a5e.tar.gz
upstream-71b8bf1a54adbb15136f2453b98561f106952a5e.tar.bz2
upstream-71b8bf1a54adbb15136f2453b98561f106952a5e.zip
ar71xx: use mtd_read in tplinkpart
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33950 3c298f89-4303-0410-b956-a3cf2f4a3e73
-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 674df66029..cabb96033d 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;