From: Gabor Juhos Date: Sun, 28 Oct 2012 12:24:32 +0000 (+0000) Subject: AA: ar71xx: use mtd_read in tplinkpart X-Git-Tag: attitude_adjustment_12.09~182 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=387951960f789366931f558012a972402e02f2da;p=openwrt%2Fsvn-archive%2Fopenwrt.git AA: ar71xx: use mtd_read in tplinkpart Backport of r33950. Signed-off-by: Gabor Juhos SVN-Revision: 33972 --- 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;