mirror of https://github.com/hak5/openwrt.git
ar71xx: use mtd_read in tplinkpart
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 33950lede-17.01
parent
28f3adc2ed
commit
973eda6077
|
@ -60,7 +60,7 @@ 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,7 +91,7 @@ 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