From 1c00a218e52aa84a884a99b51a27389ab7b98b71 Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Sun, 28 Oct 2012 12:24:34 +0000 Subject: [PATCH] AA: ar71xx: use mtd_read in wrt160nl_part Backport of r33951. Signed-off-by: Gabor Juhos SVN-Revision: 33973 --- target/linux/ar71xx/files/drivers/mtd/wrt160nl_part.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.30.2