From: Simon Glass Date: Wed, 17 May 2017 14:23:01 +0000 (-0600) Subject: arm: Remove include files from common.h X-Git-Tag: v2017.07-rc1~48 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b885d02e2c3ebb05c723519d8f566cb409d223df;p=oweals%2Fu-boot.git arm: Remove include files from common.h With a small tweak we can avoid including these files for all boards. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- diff --git a/common/board_f.c b/common/board_f.c index a212f2b539..fe90faf309 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -31,6 +31,9 @@ #include #include #include +#ifdef CONFIG_MACH_TYPE +#include +#endif #if defined(CONFIG_MP) && defined(CONFIG_PPC) #include #endif diff --git a/include/common.h b/include/common.h index c5cb65beda..3004c22b72 100644 --- a/include/common.h +++ b/include/common.h @@ -425,12 +425,6 @@ static inline int setenv_addr(const char *varname, const void *addr) return setenv_hex(varname, (ulong)addr); } -#ifdef CONFIG_ARM -# include -# include -# include -#endif /* CONFIG_ARM */ - #ifdef CONFIG_AUTO_COMPLETE int env_complete(char *var, int maxv, char *cmdv[], int maxsz, char *buf); #endif