
We need an extra condition here in case we want to use fdt without the silent console/cmdline editing/post options.
Note: It might be acceptable instead to just always declare this here.
From what I can tell it has no code size impact to declare it on any
architecture.
Signed-off-by: Simon Glass sjg@chromium.org --- common/main.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/common/main.c b/common/main.c index 8052d42..4734820 100644 --- a/common/main.c +++ b/common/main.c @@ -53,7 +53,8 @@ #include <linux/ctype.h> #include <menu.h>
-#if defined(CONFIG_SILENT_CONSOLE) || defined(CONFIG_POST) || defined(CONFIG_CMDLINE_EDITING) +#if defined(CONFIG_SILENT_CONSOLE) || defined(CONFIG_POST) || \ + defined(CONFIG_CMDLINE_EDITING) || defined(CONFIG_OF_CONTROL) DECLARE_GLOBAL_DATA_PTR; #endif