common: Move main_loop() to init.h
Move this function out of common.h and into a better place.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
diff --git a/include/common.h b/include/common.h
index 8ac5fca..c35af99 100644
--- a/include/common.h
+++ b/include/common.h
@@ -63,9 +63,6 @@
#include <display_options.h>
-/* common/main.c */
-void main_loop (void);
-
int checkflash(void);
int checkdram(void);
extern u8 __dtb_dt_begin[]; /* embedded device tree blob */
diff --git a/include/init.h b/include/init.h
index 970a39a..a5a2c79 100644
--- a/include/init.h
+++ b/include/init.h
@@ -221,6 +221,13 @@
void trap_init(unsigned long reloc_addr);
+/**
+ * main_loop() - Enter the main loop of U-Boot
+ *
+ * This normally runs the command line.
+ */
+void main_loop(void);
+
#endif /* __ASSEMBLY__ */
/* Put only stuff here that the assembler can digest */