X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=common%2Fdocecc.c;h=3412affc795a6b0d319553a4982f8f5991a819b5;hb=afac8b07172d7e4a65f86ce1ec4c783a6165ba1f;hp=cf45e0f6d97316fde5d743c7548058d57b36a18e;hpb=8bde7f776c77b343aca29b8c7b58464d915ac245;p=u-boot diff --git a/common/docecc.c b/common/docecc.c index cf45e0f6d9..3412affc79 100644 --- a/common/docecc.c +++ b/common/docecc.c @@ -28,12 +28,10 @@ #include #include -#include - #undef ECC_DEBUG #undef PSYCHO_DEBUG -#if (CONFIG_COMMANDS & CFG_CMD_DOC) +#include /* 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) */