diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-10-27 07:57:59 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-10-27 07:57:59 +0000 |
commit | c92998f9d9287559a3d94ff799fc9e39eb3fb290 (patch) | |
tree | f6d2c3ae0df171925b8128349634ca86b3d3d8e9 /target/linux/generic/files | |
parent | 269872fe1e2272567461978b2afc29fd794a5bc5 (diff) | |
download | master-31e0f0ae-c92998f9d9287559a3d94ff799fc9e39eb3fb290.tar.gz master-31e0f0ae-c92998f9d9287559a3d94ff799fc9e39eb3fb290.tar.bz2 master-31e0f0ae-c92998f9d9287559a3d94ff799fc9e39eb3fb290.zip |
generic: use mtd_read in myloader parser
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 33952
Diffstat (limited to 'target/linux/generic/files')
-rw-r--r-- | target/linux/generic/files/drivers/mtd/myloader.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/generic/files/drivers/mtd/myloader.c b/target/linux/generic/files/drivers/mtd/myloader.c index a13752dd98..33459819da 100644 --- a/target/linux/generic/files/drivers/mtd/myloader.c +++ b/target/linux/generic/files/drivers/mtd/myloader.c @@ -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; |