ar71xx: use mtd_read in wrt160nl_part

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 33951
owl
Gabor Juhos 2012-10-27 07:57:58 +00:00
parent 973eda6077
commit 269872fe1e
1 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ static int wrt160nl_parse_partitions(struct mtd_info *master,
goto free_parts;
}
ret = master->read(master, uboot_len, sizeof(*header),
ret = mtd_read(master, uboot_len, sizeof(*header),
&retlen, (void *) header);
if (ret)
goto free_hdr;