]> git.sur5r.net Git - u-boot/blobdiff - common/cmd_fat.c
amcc: Clean up command usage output
[u-boot] / common / cmd_fat.c
index 0f0ff4a369a68a27d9981d648b8dcc6f9f70b323..ebe9e090ccf8f03d692a926a40769293a7e48fcc 100644 (file)
 #include <net.h>
 #include <ata.h>
 #include <part.h>
-
-#if defined(CONFIG_CMD_FAT)
-
-#undef DEBUG
-
 #include <fat.h>
 
 
@@ -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 */