diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2013-01-01 13:15:20 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2013-01-01 13:15:20 +0000 |
commit | e16d2987ec57e718bcd8433cc16bd1e4e1ec661f (patch) | |
tree | 4baa6688daccfc5d9c19f7ae26a9e905853b1af0 /target/linux/adm5120/files | |
parent | 3d264ffd0a4bf238f46c57aadbce9a756cbbc86a (diff) | |
download | upstream-e16d2987ec57e718bcd8433cc16bd1e4e1ec661f.tar.gz upstream-e16d2987ec57e718bcd8433cc16bd1e4e1ec661f.tar.bz2 upstream-e16d2987ec57e718bcd8433cc16bd1e4e1ec661f.zip |
adm5120: use mtd_read helper in trxsplit.c
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34949 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/adm5120/files')
-rw-r--r-- | target/linux/adm5120/files/drivers/mtd/trxsplit.c | 3 |
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 6f60264ac0..76cbdc7494 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; |