summaryrefslogtreecommitdiff
path: root/package/system/mtd
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-09-02 21:06:35 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-09-02 21:06:35 +0000
commit833c5aab7e6f5f9542e94eada1c07b96d5ab0e4d (patch)
tree85066afc5e61a8850f9d11302081a3f4e2107b30 /package/system/mtd
parent766dff74457d9788a96ae9c8a3607c8e5c4081e2 (diff)
downloadmtk-20170518-833c5aab7e6f5f9542e94eada1c07b96d5ab0e4d.zip
mtk-20170518-833c5aab7e6f5f9542e94eada1c07b96d5ab0e4d.tar.gz
mtk-20170518-833c5aab7e6f5f9542e94eada1c07b96d5ab0e4d.tar.bz2
mtd: disable trx_check() for ar71xx, fixes a regression introduced in r42403
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 42405
Diffstat (limited to 'package/system/mtd')
-rw-r--r--package/system/mtd/src/trx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/system/mtd/src/trx.c b/package/system/mtd/src/trx.c
index 86d62fc..089d1ac 100644
--- a/package/system/mtd/src/trx.c
+++ b/package/system/mtd/src/trx.c
@@ -101,6 +101,7 @@ err:
return -1;
}
+#ifndef target_ar71xx
int
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);
return 1;
}
+#endif
int
mtd_fixtrx(const char *mtd, size_t offset)