aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-10-27 07:57:58 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-10-27 07:57:58 +0000
commitc2e77b8ab2ec03db36073ade55e4198351cf155b (patch)
treea3ca528d40e6934e07782433e9f2e1b81f5a6c6b /target
parent71b8bf1a54adbb15136f2453b98561f106952a5e (diff)
downloadupstream-c2e77b8ab2ec03db36073ade55e4198351cf155b.tar.gz
upstream-c2e77b8ab2ec03db36073ade55e4198351cf155b.tar.bz2
upstream-c2e77b8ab2ec03db36073ade55e4198351cf155b.zip
ar71xx: use mtd_read in wrt160nl_part
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33951 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 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;