ar71xx: use mtd_read in wrt160nl_part
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33951 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
71b8bf1a54
commit
c2e77b8ab2
|
@ -113,7 +113,7 @@ static int wrt160nl_parse_partitions(struct mtd_info *master,
|
||||||
goto free_parts;
|
goto free_parts;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = master->read(master, uboot_len, sizeof(*header),
|
ret = mtd_read(master, uboot_len, sizeof(*header),
|
||||||
&retlen, (void *) header);
|
&retlen, (void *) header);
|
||||||
if (ret)
|
if (ret)
|
||||||
goto free_hdr;
|
goto free_hdr;
|
||||||
|
|
Loading…
Reference in New Issue