X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=common%2Fcmd_fat.c;h=ebe9e090ccf8f03d692a926a40769293a7e48fcc;hb=79621bc10ba8b8c45d348994aba5b9e4923cb77b;hp=afaf299569bf612b891ae04917585d28d7a2c3f3;hpb=dd0321f5f8d284782abee6e96c6da7548e88839f;p=u-boot diff --git a/common/cmd_fat.c b/common/cmd_fat.c index afaf299569..ebe9e090cc 100644 --- a/common/cmd_fat.c +++ b/common/cmd_fat.c @@ -30,11 +30,6 @@ #include #include #include - -#if (CONFIG_COMMANDS & CFG_CMD_FAT) - -#undef DEBUG - #include @@ -193,7 +188,7 @@ int find_fat_partition (void) unsigned char *part_table; unsigned char buffer[ATA_BLOCKSIZE]; - for (i = 0; i < CFG_IDE_MAXDEVICE; i++) { + for (i = 0; i < CONFIG_SYS_IDE_MAXDEVICE; i++) { dev_desc = ide_get_dev (i); if (!dev_desc) { debug ("couldn't get ide device!\n"); @@ -323,5 +318,3 @@ void hexdump (int cnt, unsigned char *data) } } #endif /* NOT_IMPLEMENTED_YET */ - -#endif /* CFG_CMD_FAT */