aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-10-28 12:24:34 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-10-28 12:24:34 +0000
commit9cb932a0880842a5d7c209ae18cf5841a7c5087d (patch)
treead919a701b8924207c1dd8cf489ee921e355b65c /target
parentf10982ed623cca70d1514c272f2eb2afbe0abbf9 (diff)
downloadopenwrt-9cb932a0880842a5d7c209ae18cf5841a7c5087d.tar.gz
openwrt-9cb932a0880842a5d7c209ae18cf5841a7c5087d.zip
AA: ar71xx: use mtd_read in wrt160nl_part
Backport of r33951. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@33973 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r--target/linux/ar71xx/files/drivers/mtd/wrt160nl_part.c4
1 files 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 72927f6f2..1ced8acc7 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;