summaryrefslogtreecommitdiff
path: root/target/linux/adm5120/files/drivers/mtd
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-01-01 13:15:20 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-01-01 13:15:20 +0000
commit03e09078dc15cf8a439ca950ad13d856fba372ae (patch)
tree312921eb23072886534bae5a176c32e8c369e1c0 /target/linux/adm5120/files/drivers/mtd
parente1b13e15b2f3d26fad428f5b2b0025f687a5752e (diff)
downloadmtk-20170518-03e09078dc15cf8a439ca950ad13d856fba372ae.zip
mtk-20170518-03e09078dc15cf8a439ca950ad13d856fba372ae.tar.gz
mtk-20170518-03e09078dc15cf8a439ca950ad13d856fba372ae.tar.bz2
adm5120: use mtd_read helper in trxsplit.c
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 34949
Diffstat (limited to 'target/linux/adm5120/files/drivers/mtd')
-rw-r--r--target/linux/adm5120/files/drivers/mtd/trxsplit.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/target/linux/adm5120/files/drivers/mtd/trxsplit.c b/target/linux/adm5120/files/drivers/mtd/trxsplit.c
index 6f60264..76cbdc7 100644
--- a/target/linux/adm5120/files/drivers/mtd/trxsplit.c
+++ b/target/linux/adm5120/files/drivers/mtd/trxsplit.c
@@ -53,8 +53,7 @@ static int trxsplit_checktrx(struct mtd_info *mtd, unsigned long offset)
size_t retlen;
int err;
- err = mtd->read(mtd, offset, sizeof(trx_hdr), &retlen,
- (void *)&trx_hdr);
+ err = mtd_read(mtd, offset, sizeof(trx_hdr), &retlen, (void *)&trx_hdr);
if (err) {
printk(KERN_ALERT PFX "unable to read from '%s'\n", mtd->name);
goto err_out;