1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-24 01:01:52 +02:00

generic: use mtd_read in myloader parser

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33952 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
juhosg 2012-10-27 07:57:59 +00:00
parent 5751fd8e2a
commit 5cd8b64921

View 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;