Browse Source

adm5120: use mtd_read helper in trxsplit.c

Signed-off-by: Gabor Juhos <[email protected]>

SVN-Revision: 34949
Gabor Juhos 13 years ago
parent
commit
03e09078dc
1 changed files with 1 additions and 2 deletions
  1. 1 2
      target/linux/adm5120/files/drivers/mtd/trxsplit.c

+ 1 - 2
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;
 	size_t retlen;
 	int err;
 	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) {
 	if (err) {
 		printk(KERN_ALERT PFX "unable to read from '%s'\n", mtd->name);
 		printk(KERN_ALERT PFX "unable to read from '%s'\n", mtd->name);
 		goto err_out;
 		goto err_out;