]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
cmd_bootm.c: Fix problem with '#if (CONFIG_CMD_USB)'
authorStefan Roese <sr@denx.de>
Wed, 30 Jul 2008 07:59:51 +0000 (09:59 +0200)
committerWolfgang Denk <wd@denx.de>
Thu, 31 Jul 2008 08:44:26 +0000 (10:44 +0200)
A recent patch used '#if (CONFIG_CMD_USB)' instead of
'#if defined(CONFIG_CMD_USB)'. This patch fixes this problem and makes
common/bootm.c compile again.

Signed-off-by: Stefan Roese <sr@denx.de>
Acked-by: Markus Klotzbuecher <mk@denx.de>
common/cmd_bootm.c

index 4040a691dd7166d6c01b43902f7cf7398c0ad7df..18682fe5a247c1cb538bdbc71c22aeec43b09021 100644 (file)
@@ -36,7 +36,7 @@
 #include <lmb.h>
 #include <asm/byteorder.h>
 
-#if (CONFIG_CMD_USB)
+#if defined(CONFIG_CMD_USB)
 #include <usb.h>
 #endif
 
@@ -217,7 +217,7 @@ int do_bootm (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
         */
        iflag = disable_interrupts();
 
-#if (CONFIG_CMD_USB)
+#if defined(CONFIG_CMD_USB)
        /*
         * turn off USB to prevent the host controller from writing to the
         * SDRAM while Linux is booting. This could happen (at least for OHCI