From: Gabor Juhos Date: Sat, 27 Oct 2012 07:57:59 +0000 (+0000) Subject: generic: use mtd_read in myloader parser X-Git-Tag: reboot~12492 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c92998f9d9287559a3d94ff799fc9e39eb3fb290;p=openwrt%2Fstaging%2Fnoltari.git generic: use mtd_read in myloader parser Signed-off-by: Gabor Juhos SVN-Revision: 33952 --- 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;