]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Kill unneeded #include <linux/kconfig.h>
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 17 Jul 2015 11:30:28 +0000 (20:30 +0900)
committerTom Rini <trini@konsulko.com>
Mon, 27 Jul 2015 19:02:12 +0000 (15:02 -0400)
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>
arch/arm/cpu/armv7/sunxi/dram_sun8i_a23.c
arch/arm/cpu/armv7/sunxi/dram_sun8i_a33.c
arch/x86/cpu/ivybridge/gma.c
board/sunxi/dram_sun4i_auto.c
board/sunxi/dram_sun5i_auto.c

index 165c052122ec4a9e0acfda51a9e992d575bc0b81..c53671a0e9b835b9a528d50fe82c19a2b6afd655 100644 (file)
@@ -26,7 +26,6 @@
 #include <asm/arch/clock.h>
 #include <asm/arch/dram.h>
 #include <asm/arch/prcm.h>
-#include <linux/kconfig.h>
 
 static const struct dram_para dram_para = {
        .clock = CONFIG_DRAM_CLK,
index ebba43831969063bdd41aabb33ef591b947c7c44..fa1620cb3931eed3d5d28c25243ed609791b6197 100644 (file)
@@ -14,7 +14,6 @@
 #include <asm/arch/clock.h>
 #include <asm/arch/dram.h>
 #include <asm/arch/prcm.h>
-#include <linux/kconfig.h>
 
 /* PLL runs at 2x dram-clk, controller runs at PLL / 4 (dram-clk / 2) */
 #define DRAM_CLK_MUL 2
index ea169b05e944429fe4b4bd7cbdab1df5b478a23a..89d4a5e9ccacf5d49d7ca9f26d07983f3f01f211 100644 (file)
@@ -16,7 +16,6 @@
 #include <asm/pci.h>
 #include <asm/arch/pch.h>
 #include <asm/arch/sandybridge.h>
-#include <linux/kconfig.h>
 
 struct gt_powermeter {
        u16 reg;
index 149bb51dcbd097f39530d3e8597f6985589d6202..7d4409b51e9882ca3707154f4c8f4939f43880af 100644 (file)
@@ -1,6 +1,5 @@
 #include <common.h>
 #include <asm/arch/dram.h>
-#include <linux/kconfig.h>
 
 static struct dram_para dram_para = {
        .clock = CONFIG_DRAM_CLK,
index 596a2060725d313ee7e176a4e09a8202f6ebded6..e3fa243267b09fd0e2b5e4d636451c33bd1da520 100644 (file)
@@ -2,7 +2,6 @@
 
 #include <common.h>
 #include <asm/arch/dram.h>
-#include <linux/kconfig.h>
 
 static struct dram_para dram_para = {
        .clock = CONFIG_DRAM_CLK,