aboutsummaryrefslogtreecommitdiff
path: root/common/cmd_diag.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/cmd_diag.c')
-rw-r--r--common/cmd_diag.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/cmd_diag.c b/common/cmd_diag.c
index 45c4b31f5fa..cb99b7700f7 100644
--- a/common/cmd_diag.c
+++ b/common/cmd_diag.c
@@ -28,7 +28,7 @@
#include <command.h>
#include <post.h>
-#if (CONFIG_COMMANDS & CFG_CMD_DIAG) && defined(CONFIG_POST)
+#if defined(CONFIG_CMD_DIAG) && defined(CONFIG_POST)
int do_diag (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
{
@@ -77,4 +77,4 @@ U_BOOT_CMD(
" - run specified tests\n"
);
-#endif /* CFG_CMD_DIAG */
+#endif