aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-10-28 12:24:35 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-10-28 12:24:35 +0000
commit6fdf70526c7bc95fc10aed8b59393d16e96139a1 (patch)
tree1599f861364015b59ff0e25bd15daa60ebed0775 /target/linux
parentdd8155d8147bf1606b2c5574ac227b5afb4f3bab (diff)
downloadupstream-6fdf70526c7bc95fc10aed8b59393d16e96139a1.tar.gz
upstream-6fdf70526c7bc95fc10aed8b59393d16e96139a1.tar.bz2
upstream-6fdf70526c7bc95fc10aed8b59393d16e96139a1.zip
AA: generic: use mtd_read in myloader parser
Bacport of 33952. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@33974 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-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;