Browse Source

mtd: disable trx_check() for ar71xx, fixes a regression introduced in r42403

Signed-off-by: Felix Fietkau <[email protected]>

SVN-Revision: 42405
Felix Fietkau 11 years ago
parent
commit
833c5aab7e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      package/system/mtd/src/trx.c

+ 2 - 0
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)