]> git.sur5r.net Git - u-boot/blobdiff - common/docecc.c
[new uImage] Compilation and new uImage handling fixes for imxtract
[u-boot] / common / docecc.c
index cf45e0f6d97316fde5d743c7548058d57b36a18e..5daa6fc4054854ebd2b1ac456c084c5e0e223fca 100644 (file)
 #include <common.h>
 #include <malloc.h>
 
-#include <linux/mtd/doc2000.h>
-
 #undef ECC_DEBUG
 #undef PSYCHO_DEBUG
 
-#if (CONFIG_COMMANDS & CFG_CMD_DOC)
+#if defined(CONFIG_CMD_DOC)
+
+#include <linux/mtd/doc2000.h>
 
 /* need to undef it (from asm/termbits.h) */
 #undef B0
@@ -514,4 +514,4 @@ int doc_decode_ecc(unsigned char sector[SECTOR_SIZE], unsigned char ecc1[6])
     return nb_errors;
 }
 
-#endif /* (CONFIG_COMMANDS & CFG_CMD_DOC) */
+#endif