adm5120: use mtd_read helper in trxsplit.c
authorGabor Juhos <juhosg@openwrt.org>
Tue, 1 Jan 2013 13:15:20 +0000 (13:15 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Tue, 1 Jan 2013 13:15:20 +0000 (13:15 +0000)
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34949

target/linux/adm5120/files/drivers/mtd/trxsplit.c

index 6f60264ac0318aadd05f442a5ccf0b1605971c08..76cbdc749496745885d52a3c4909b9520f917eda 100644 (file)
@@ -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;