]> git.sur5r.net Git - u-boot/blobdiff - common/docecc.c
Blackfin: fix SPI flash speed define name
[u-boot] / common / docecc.c
index cf45e0f6d97316fde5d743c7548058d57b36a18e..3412affc795a6b0d319553a4982f8f5991a819b5 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) */