]> git.sur5r.net Git - u-boot/commitdiff
nds32: Remove include files from common.h
authorSimon Glass <sjg@chromium.org>
Wed, 17 May 2017 14:22:57 +0000 (08:22 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 5 Jun 2017 15:02:36 +0000 (11:02 -0400)
With a few tweaks we can avoid including these files, which are only
needed by two C files.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/nds32/lib/bootm.c
board/AndesTech/adp-ag101p/adp-ag101p.c
include/common.h

index 4c95a418a8e9c5598086297f6ab4de299cb9aec9..21aadf284f11843d74b104ac4f0f0e074fe2dcf9 100644 (file)
@@ -12,6 +12,7 @@
 #include <u-boot/zlib.h>
 #include <asm/byteorder.h>
 #include <asm/bootm.h>
+#include <asm/setup.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index a462941448b1a8c3348f8fd32c147ed73ed8d52b..79608f4efe861e9fceedfc050e0965a0f7acacf1 100644 (file)
@@ -11,6 +11,8 @@
 #include <netdev.h>
 #endif
 #include <linux/io.h>
+#include <asm/io.h>
+#include <asm/mach-types.h>
 
 #include <faraday/ftsdc010.h>
 #include <faraday/ftsmc020.h>
index 02fda57f859727589aed371a05512971e33374d3..c5cb65bedae46ef208ddbce95e682c89f97e727b 100644 (file)
@@ -430,11 +430,6 @@ static inline int setenv_addr(const char *varname, const void *addr)
 # include <asm/setup.h>
 # include <asm/u-boot.h>
 #endif /* CONFIG_ARM */
-#ifdef CONFIG_NDS32
-# include <asm/mach-types.h>
-# include <asm/setup.h>
-# include <asm/u-boot.h>
-#endif /* CONFIG_NDS32 */
 
 #ifdef CONFIG_AUTO_COMPLETE
 int env_complete(char *var, int maxv, char *cmdv[], int maxsz, char *buf);