AA: ar71xx: use mtd_read in wrt160nl_part
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 28 Oct 2012 12:24:34 +0000 (12:24 +0000)
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 28 Oct 2012 12:24:34 +0000 (12:24 +0000)
Backport of r33951.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@33973 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/ar71xx/files/drivers/mtd/wrt160nl_part.c

index 72927f6..1ced8ac 100644 (file)
@@ -113,8 +113,8 @@ static int wrt160nl_parse_partitions(struct mtd_info *master,
                goto free_parts;
        }
 
-       ret = master->read(master, uboot_len, sizeof(*header),
-                          &retlen, (void *) header);
+       ret = mtd_read(master, uboot_len, sizeof(*header),
+                      &retlen, (void *) header);
        if (ret)
                goto free_hdr;