mirror of https://github.com/hak5/openwrt.git
adm5120: use mtd_read helper in trxsplit.c
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 34949lede-17.01
parent
e1b13e15b2
commit
03e09078dc
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue