generic: use mtd_read in myloader parser
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 33952
This commit is contained in:
parent
269872fe1e
commit
c92998f9d9
1 changed files with 2 additions and 2 deletions
|
@ -72,8 +72,8 @@ static int myloader_parse_partitions(struct mtd_info *master,
|
||||||
printk(KERN_DEBUG "%s: searching for MyLoader partition table"
|
printk(KERN_DEBUG "%s: searching for MyLoader partition table"
|
||||||
" at offset 0x%lx\n", master->name, offset);
|
" at offset 0x%lx\n", master->name, offset);
|
||||||
|
|
||||||
ret = master->read(master, offset, sizeof(*buf), &retlen,
|
ret = mtd_read(master, offset, sizeof(*buf), &retlen,
|
||||||
(void *)buf);
|
(void *)buf);
|
||||||
if (ret)
|
if (ret)
|
||||||
goto out_free_buf;
|
goto out_free_buf;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue