mtd: disable trx_check() for ar71xx, fixes a regression introduced in r42403
Signed-off-by: Felix Fietkau <nbd@openwrt.org> Backport of r42405 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42406 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
955146573b
commit
3d2eefd4cb
|
@ -101,6 +101,7 @@ err:
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef target_ar71xx
|
||||||
int
|
int
|
||||||
trx_check(int imagefd, const char *mtd, char *buf, int *len)
|
trx_check(int imagefd, const char *mtd, char *buf, int *len)
|
||||||
{
|
{
|
||||||
|
@ -141,6 +142,7 @@ trx_check(int imagefd, const char *mtd, char *buf, int *len)
|
||||||
close(fd);
|
close(fd);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
int
|
int
|
||||||
mtd_fixtrx(const char *mtd, size_t offset)
|
mtd_fixtrx(const char *mtd, size_t offset)
|
||||||
|
|
Loading…
Reference in New Issue