projects
/
openwrt
/
svn-archive
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f825afa
)
AA: ar71xx: use mtd_read in tplinkpart
author
Gabor Juhos
<juhosg@openwrt.org>
Sun, 28 Oct 2012 12:24:32 +0000
(12:24 +0000)
committer
Gabor Juhos
<juhosg@openwrt.org>
Sun, 28 Oct 2012 12:24:32 +0000
(12:24 +0000)
Backport of r33950.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 33972
target/linux/ar71xx/files/drivers/mtd/tplinkpart.c
patch
|
blob
|
history
diff --git
a/target/linux/ar71xx/files/drivers/mtd/tplinkpart.c
b/target/linux/ar71xx/files/drivers/mtd/tplinkpart.c
index 674df660299a828431d7ba2684808155e2e26be6..cabb96033d6cbdfe14bbe6ba2ad3facda8d39c90 100644
(file)
--- a/
target/linux/ar71xx/files/drivers/mtd/tplinkpart.c
+++ b/
target/linux/ar71xx/files/drivers/mtd/tplinkpart.c
@@
-60,8
+60,8
@@
tplink_read_header(struct mtd_info *mtd, size_t offset)
goto err;
header_len = sizeof(struct tplink_fw_header);
- ret = mtd
->
read(mtd, offset, header_len, &retlen,
-
(unsigned char *) header);
+ ret = mtd
_
read(mtd, offset, header_len, &retlen,
+ (unsigned char *) header);
if (ret)
goto err_free_header;
@@
-91,8
+91,8
@@
static int tplink_check_rootfs_magic(struct mtd_info *mtd, size_t offset)
size_t retlen;
int ret;
- ret = mtd
->
read(mtd, offset, sizeof(magic), &retlen,
-
(unsigned char *) &magic);
+ ret = mtd
_
read(mtd, offset, sizeof(magic), &retlen,
+ (unsigned char *) &magic);
if (ret)
return ret;