]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/cmd_boot.c
Combine consecutive inline asm instructions into one statement to
[karo-tx-uboot.git] / common / cmd_boot.c
index 7b603d3502f2a7bec3cc111b9490e43dc568b658..a799b338a47fd1a1b1f24088ccb2af12f90f449d 100644 (file)
@@ -28,6 +28,8 @@
 #include <command.h>
 #include <net.h>
 
+#ifdef CONFIG_CMD_GO
+
 /* Allow ports to override the default behavior */
 __attribute__((weak))
 unsigned long do_go_exec (ulong (*entry)(int, char * const []), int argc, char * const argv[])
@@ -41,7 +43,7 @@ int do_go (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        int     rcode = 0;
 
        if (argc < 2)
-               return cmd_usage(cmdtp);
+               return CMD_RET_USAGE;
 
        addr = simple_strtoul(argv[1], NULL, 16);
 
@@ -67,6 +69,8 @@ U_BOOT_CMD(
        "      passing 'arg' as arguments"
 );
 
+#endif
+
 U_BOOT_CMD(
        reset, 1, 0,    do_reset,
        "Perform RESET of the CPU",