Skip to content

Commit

Permalink
nds32: Remove include files from common.h
Browse files Browse the repository at this point in the history
With a few tweaks we can avoid including these files, which are only
needed by two C files.

Signed-off-by: Simon Glass <[email protected]>
  • Loading branch information
sjg20 authored and trini committed Jun 5, 2017
1 parent 3ff240c commit 3a53e99
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions arch/nds32/lib/bootm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 2 additions & 0 deletions board/AndesTech/adp-ag101p/adp-ag101p.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
5 changes: 0 additions & 5 deletions include/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3a53e99

Please sign in to comment.