generic: use mtd_read in myloader parser
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 27 Oct 2012 07:57:59 +0000 (07:57 +0000)
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 27 Oct 2012 07:57:59 +0000 (07:57 +0000)
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33952 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/generic/files/drivers/mtd/myloader.c

index a13752d..3345981 100644 (file)
@@ -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;