aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
Diffstat (limited to 'target')
-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;