summaryrefslogtreecommitdiff
path: root/common/cmd_autoscript.c
diff options
context:
space:
mode:
authorJon Loeliger <jdl@freescale.com>2007-07-08 17:51:39 -0500
committerJon Loeliger <jdl@freescale.com>2007-07-08 17:55:57 -0500
commitbaa26db4113679b80970ff447d91cc10217742a6 (patch)
tree11d17e5e569b792a5971b892f434bbf9d6768826 /common/cmd_autoscript.c
parentaf075ee96e52dda7b6bca6c937588aeaaec5f2cd (diff)
downloadu-boot-imx-baa26db4113679b80970ff447d91cc10217742a6.zip
u-boot-imx-baa26db4113679b80970ff447d91cc10217742a6.tar.gz
u-boot-imx-baa26db4113679b80970ff447d91cc10217742a6.tar.bz2
common/cmd_[af]*: Remove obsolete references to CONFIG_COMMANDS.
Signed-off-by: Jon Loeliger <jdl@freescale.com>
Diffstat (limited to 'common/cmd_autoscript.c')
-rw-r--r--common/cmd_autoscript.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/common/cmd_autoscript.c b/common/cmd_autoscript.c
index aaca362..606fb9a 100644
--- a/common/cmd_autoscript.c
+++ b/common/cmd_autoscript.c
@@ -47,8 +47,7 @@
#include <hush.h>
#endif
-#if defined(CONFIG_AUTOSCRIPT) || \
- (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) || defined(CONFIG_CMD_AUTOSCRIPT)
+#if defined(CONFIG_AUTOSCRIPT) || defined(CONFIG_CMD_AUTOSCRIPT)
extern image_header_t header; /* from cmd_bootm.c */
int
@@ -152,7 +151,7 @@ autoscript (ulong addr)
#endif /* CONFIG_AUTOSCRIPT || CFG_CMD_AUTOSCRIPT */
/**************************************************/
-#if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) || defined(CONFIG_CMD_AUTOSCRIPT)
+#if defined(CONFIG_CMD_AUTOSCRIPT)
int
do_autoscript (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
{
@@ -170,7 +169,7 @@ do_autoscript (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
return rcode;
}
-#if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) || defined(CONFIG_CMD_AUTOSCRIPT)
+#if defined(CONFIG_CMD_AUTOSCRIPT)
U_BOOT_CMD(
autoscr, 2, 0, do_autoscript,
"autoscr - run script from memory\n",
@@ -179,4 +178,4 @@ U_BOOT_CMD(
);
#endif /* CFG_CMD_AUTOSCRIPT */
-#endif /* CONFIG_AUTOSCRIPT || CFG_CMD_AUTOSCRIPT */
+#endif /* CFG_CMD_AUTOSCRIPT */