ar71xx: use mtd_read in wrt160nl_part
authorGabor Juhos <juhosg@openwrt.org>
Sat, 27 Oct 2012 07:57:58 +0000 (07:57 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sat, 27 Oct 2012 07:57:58 +0000 (07:57 +0000)
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 33951

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;