mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 18:35:55 +02:00
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
This commit is contained in:
parent
68c61e39ad
commit
584868a74e
@ -60,8 +60,8 @@ tplink_read_header(struct mtd_info *mtd, size_t offset)
|
|||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
header_len = sizeof(struct tplink_fw_header);
|
header_len = sizeof(struct tplink_fw_header);
|
||||||
ret = mtd->read(mtd, offset, header_len, &retlen,
|
ret = mtd_read(mtd, offset, header_len, &retlen,
|
||||||
(unsigned char *) header);
|
(unsigned char *) header);
|
||||||
if (ret)
|
if (ret)
|
||||||
goto err_free_header;
|
goto err_free_header;
|
||||||
|
|
||||||
@ -91,8 +91,8 @@ static int tplink_check_rootfs_magic(struct mtd_info *mtd, size_t offset)
|
|||||||
size_t retlen;
|
size_t retlen;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ret = mtd->read(mtd, offset, sizeof(magic), &retlen,
|
ret = mtd_read(mtd, offset, sizeof(magic), &retlen,
|
||||||
(unsigned char *) &magic);
|
(unsigned char *) &magic);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user