Commit b0c8f4a7972ea114654a9bac88fd458f2e2e8636

Authored by Masahiro Yamada
Committed by Tom Rini
1 parent 3c963d2a44

Kill unneeded #include <linux/kconfig.h>

Because the top-level Makefile forces all the source files
to include include/linux/kconfig.h (see the UBOOTINCLUDE define),
these includes are redundant.

By the way, there are exceptions for the statement above; host
programs.  In fact, host tools in U-Boot depend on a particular
board configuration, although I think they should not.  So, some
files still include <linux/config.h> to work around build errors
on host tools.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
Acked-by: Simon Glass <sjg@chromium.org>

Showing 5 changed files with 0 additions and 5 deletions Side-by-side Diff

arch/arm/cpu/armv7/sunxi/dram_sun8i_a23.c
... ... @@ -26,7 +26,6 @@
26 26 #include <asm/arch/clock.h>
27 27 #include <asm/arch/dram.h>
28 28 #include <asm/arch/prcm.h>
29   -#include <linux/kconfig.h>
30 29  
31 30 static const struct dram_para dram_para = {
32 31 .clock = CONFIG_DRAM_CLK,
arch/arm/cpu/armv7/sunxi/dram_sun8i_a33.c
... ... @@ -14,7 +14,6 @@
14 14 #include <asm/arch/clock.h>
15 15 #include <asm/arch/dram.h>
16 16 #include <asm/arch/prcm.h>
17   -#include <linux/kconfig.h>
18 17  
19 18 /* PLL runs at 2x dram-clk, controller runs at PLL / 4 (dram-clk / 2) */
20 19 #define DRAM_CLK_MUL 2
arch/x86/cpu/ivybridge/gma.c
... ... @@ -16,7 +16,6 @@
16 16 #include <asm/pci.h>
17 17 #include <asm/arch/pch.h>
18 18 #include <asm/arch/sandybridge.h>
19   -#include <linux/kconfig.h>
20 19  
21 20 struct gt_powermeter {
22 21 u16 reg;
board/sunxi/dram_sun4i_auto.c
1 1 #include <common.h>
2 2 #include <asm/arch/dram.h>
3   -#include <linux/kconfig.h>
4 3  
5 4 static struct dram_para dram_para = {
6 5 .clock = CONFIG_DRAM_CLK,
board/sunxi/dram_sun5i_auto.c
... ... @@ -2,7 +2,6 @@
2 2  
3 3 #include <common.h>
4 4 #include <asm/arch/dram.h>
5   -#include <linux/kconfig.h>
6 5  
7 6 static struct dram_para dram_para = {
8 7 .clock = CONFIG_DRAM_CLK,