diff --git a/target/linux/generic/files/drivers/mtd/myloader.c b/target/linux/generic/files/drivers/mtd/myloader.c index a13752dd9..33459819d 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;