From 45ee8d395cc4d19a372497a09c3adac1b4bdd116 Mon Sep 17 00:00:00 2001 From: juhosg Date: Sun, 28 Oct 2012 12:24:35 +0000 Subject: AA: generic: use mtd_read in myloader parser Bacport of 33952. Signed-off-by: Gabor Juhos git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@33974 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/generic/files/drivers/mtd/myloader.c | 4 ++-- 1 file 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 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; -- cgit v1.2.3