diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-10-28 12:24:32 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-10-28 12:24:32 +0000 |
commit | 55b2934c6f8a6ba9600f7364c4767a430972e45a (patch) | |
tree | 6db133072aa0aee32586f093c34217a31931f695 /target/linux/ar71xx/files/drivers/mtd | |
parent | 8d064bbf3bff271fae5b67be691e53995b627b0a (diff) | |
download | upstream-55b2934c6f8a6ba9600f7364c4767a430972e45a.tar.gz upstream-55b2934c6f8a6ba9600f7364c4767a430972e45a.tar.bz2 upstream-55b2934c6f8a6ba9600f7364c4767a430972e45a.zip |
AA: ar71xx: use mtd_read in tplinkpart
Backport of r33950.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@33972 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files/drivers/mtd')
-rw-r--r-- | target/linux/ar71xx/files/drivers/mtd/tplinkpart.c | 8 |
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; |