AA: ar71xx: use mtd_read in wrt160nl_part
authorGabor Juhos <juhosg@openwrt.org>
Sun, 28 Oct 2012 12:24:34 +0000 (12:24 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sun, 28 Oct 2012 12:24:34 +0000 (12:24 +0000)
Backport of r33951.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 33973

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

index 72927f6f25780e8b4296401a6a137b4a9826cbcf..1ced8acc7b2a5768aa43210458935b598166cf3e 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;