Move MPC512x_FEC driver to drivers/net
[platform/kernel/u-boot.git] / common / docecc.c
index cf45e0f..3412aff 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)
+#include <linux/mtd/doc2000.h>
 
 /* need to undef it (from asm/termbits.h) */
 #undef B0
@@ -513,5 +511,3 @@ int doc_decode_ecc(unsigned char sector[SECTOR_SIZE], unsigned char ecc1[6])
     free(Index_of);
     return nb_errors;
 }
-
-#endif /* (CONFIG_COMMANDS & CFG_CMD_DOC) */