lantiq: Tune the XWAY subtarget cflags
[openwrt/staging/yousong.git] / package / mtd / src / jffs2.c
index 512f22278cd3a261c7cc8a7c00df309b79f34e35..2a83bd47f4aa2ba5422cffae1d37991758468f5e 100644 (file)
@@ -244,9 +244,6 @@ int mtd_replace_jffs2(const char *mtd, int fd, int ofs, const char *filename)
        pad(erasesize);
        free(buf);
 
-#ifdef target_brcm
-       trx_fixup(outfd, mtd);
-#endif
        return (mtdofs - ofs);
 }
 
@@ -347,9 +344,9 @@ int mtd_write_jffs2(const char *mtd, const char *filename, const char *dir)
 
        err = 0;
 
-#ifdef target_brcm
-       trx_fixup(outfd, mtd);
-#endif
+       if (trx_fixup) {
+         trx_fixup(outfd, mtd);
+       }
 
 done:
        close(outfd);