From: Gabor Juhos Date: Sat, 27 Oct 2012 07:57:58 +0000 (+0000) Subject: ar71xx: use mtd_read in wrt160nl_part X-Git-Tag: reboot~12493 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=269872fe1e2272567461978b2afc29fd794a5bc5;p=oweals%2Fopenwrt.git ar71xx: use mtd_read in wrt160nl_part Signed-off-by: Gabor Juhos SVN-Revision: 33951 --- diff --git a/target/linux/ar71xx/files/drivers/mtd/wrt160nl_part.c b/target/linux/ar71xx/files/drivers/mtd/wrt160nl_part.c index 72927f6f25..1ced8acc7b 100644 --- a/target/linux/ar71xx/files/drivers/mtd/wrt160nl_part.c +++ b/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;