ar71xx: use mtd_read in wrt160nl_part

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

SVN-Revision: 33951
master
Gabor Juhos 12 years ago
parent 973eda6077
commit 269872fe1e
  1. 4
      target/linux/ar71xx/files/drivers/mtd/wrt160nl_part.c

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

Loading…
Cancel
Save