From: Gabor Juhos Date: Tue, 1 Jan 2013 13:15:20 +0000 (+0000) Subject: adm5120: use mtd_read helper in trxsplit.c X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=03e09078dc15cf8a439ca950ad13d856fba372ae;p=librecmc%2Flibrecmc.git adm5120: use mtd_read helper in trxsplit.c Signed-off-by: Gabor Juhos SVN-Revision: 34949 --- 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;