summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-10-27 07:57:59 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-10-27 07:57:59 +0000
commit5cd8b649212f75077eed578f7e1e0fde16d8f659 (patch)
tree4ce8d66cbeea57840ad349f1d4713ccf1bb0b4cf
parent5751fd8e2a0182fadd188a1d01fbd905cf2f7a61 (diff)
generic: use mtd_read in myloader parser
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33952 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/generic/files/drivers/mtd/myloader.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/generic/files/drivers/mtd/myloader.c b/target/linux/generic/files/drivers/mtd/myloader.c
index a13752dd98..33459819da 100644
--- a/target/linux/generic/files/drivers/mtd/myloader.c
+++ b/target/linux/generic/files/drivers/mtd/myloader.c
@@ -72,8 +72,8 @@ static int myloader_parse_partitions(struct mtd_info *master,
printk(KERN_DEBUG "%s: searching for MyLoader partition table"
" at offset 0x%lx\n", master->name, offset);
- ret = master->read(master, offset, sizeof(*buf), &retlen,
- (void *)buf);
+ ret = mtd_read(master, offset, sizeof(*buf), &retlen,
+ (void *)buf);
if (ret)
goto out_free_buf;