Patchwork [U-Boot,v4,7/9] main: Correct header order

login
register
mail settings
Submitter Simon Glass
Date May 15, 2013, 4:23 p.m.
Message ID <1368635041-27638-7-git-send-email-sjg@chromium.org>
Download mbox | patch
Permalink /patch/244138/
State Accepted, archived
Delegated to: Tom Rini
Headers show

Comments

Simon Glass - May 15, 2013, 4:23 p.m.
The headers are a bit out of order, so fix them.

Signed-off-by: Simon Glass <sjg@chromium.org>
---
Changes in v4:
- Rebase without autoconf changes

Changes in v3: None

 common/main.c | 19 ++++---------------
 1 file changed, 4 insertions(+), 15 deletions(-)

Patch

diff --git a/common/main.c b/common/main.c
index 1adfea6..e5173d7 100644
--- a/common/main.c
+++ b/common/main.c
@@ -28,26 +28,15 @@ 
 /* #define	DEBUG	*/
 
 #include <common.h>
-#include <watchdog.h>
 #include <command.h>
 #include <fdtdec.h>
-#include <malloc.h>
-#include <version.h>
-#ifdef CONFIG_MODEM_SUPPORT
-#include <malloc.h>		/* for free() prototype */
-#endif
-
-#ifdef CONFIG_SYS_HUSH_PARSER
 #include <hush.h>
-#endif
-
-#ifdef CONFIG_OF_CONTROL
-#include <fdtdec.h>
-#endif
-
+#include <malloc.h>
+#include <menu.h>
 #include <post.h>
+#include <version.h>
+#include <watchdog.h>
 #include <linux/ctype.h>
-#include <menu.h>
 
 DECLARE_GLOBAL_DATA_PTR;