summaryrefslogtreecommitdiff
path: root/common/flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/flash.c')
-rw-r--r--common/flash.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/flash.c b/common/flash.c
index 09b773b809..770609e42d 100644
--- a/common/flash.c
+++ b/common/flash.c
@@ -349,6 +349,7 @@ DECLARE_CONSOLE_COMMAND(flashinfo, command_flash_info,
"Print flash info",
NULL);
+#ifdef CONFIG_CMD_FLASH
static int command_flash_erase(int argc, char **argv)
{
int offset = -1;
@@ -412,6 +413,7 @@ DECLARE_CONSOLE_COMMAND(flashwrite, command_flash_write,
"offset [size]",
"Write pattern to flash",
NULL);
+#endif
static int command_flash_wp(int argc, char **argv)
{