[U-Boot] [PATCH 58/60] ARM: tegra: clean up board include statements

Stephen Warren swarren at wwwdotorg.org
Tue Apr 19 22:59:38 CEST 2016


From: Stephen Warren <swarren at nvidia.com>

Tegra board files currently include many headers they don't need. Remove
the unused include statements.

Signed-off-by: Stephen Warren <swarren at nvidia.com>
---
 board/avionic-design/common/tamonten.c  | 5 -----
 board/compal/paz00/paz00.c              | 3 ---
 board/compulab/trimslice/trimslice.c    | 4 ----
 board/nvidia/harmony/harmony.c          | 5 -----
 board/nvidia/jetson-tk1/jetson-tk1.c    | 1 -
 board/nvidia/nyan-big/nyan-big.c        | 3 ---
 board/nvidia/seaboard/seaboard.c        | 3 ---
 board/nvidia/venice2/as3722_init.c      | 1 -
 board/nvidia/whistler/whistler.c        | 3 ---
 board/toradex/apalis_t30/apalis_t30.c   | 1 -
 board/toradex/colibri_t20/colibri_t20.c | 2 --
 board/toradex/colibri_t30/colibri_t30.c | 2 --
 drivers/gpio/tegra_gpio.c               | 1 -
 13 files changed, 34 deletions(-)

diff --git a/board/avionic-design/common/tamonten.c b/board/avionic-design/common/tamonten.c
index 162683eff9ce..1d4cf09a3138 100644
--- a/board/avionic-design/common/tamonten.c
+++ b/board/avionic-design/common/tamonten.c
@@ -8,13 +8,8 @@
  */
 
 #include <common.h>
-#include <ns16550.h>
 #include <dt-bindings/gpio/tegra-gpio.h>
-#include <asm/io.h>
 #include <asm/gpio.h>
-#include <asm/arch/clock.h>
-#include <asm/arch/tegra.h>
-#include <asm/arch-tegra/clk_rst.h>
 #include <mach/board.h>
 #include <mach/board_init.h>
 #include <mach/pinmux.h>
diff --git a/board/compal/paz00/paz00.c b/board/compal/paz00/paz00.c
index 4727c074133b..d0d1b464cd6e 100644
--- a/board/compal/paz00/paz00.c
+++ b/board/compal/paz00/paz00.c
@@ -8,9 +8,6 @@
  */
 
 #include <common.h>
-#include <asm/io.h>
-#include <asm/arch/tegra.h>
-#include <asm/gpio.h>
 #include <mach/board_init.h>
 #include <mach/pinmux.h>
 #include <mach/spl_uart.h>
diff --git a/board/compulab/trimslice/trimslice.c b/board/compulab/trimslice/trimslice.c
index 909ad2efaa48..aa28ccd7ede3 100644
--- a/board/compulab/trimslice/trimslice.c
+++ b/board/compulab/trimslice/trimslice.c
@@ -7,10 +7,6 @@
 
 #include <common.h>
 #include <i2c.h>
-#include <asm/io.h>
-#include <asm/arch/tegra.h>
-#include <asm/arch/clock.h>
-#include <asm/gpio.h>
 #include <mach/board_init.h>
 #include <mach/pinmux.h>
 #include <mach/spl_uart.h>
diff --git a/board/nvidia/harmony/harmony.c b/board/nvidia/harmony/harmony.c
index 5986bcbe0fb5..4597a7606a4e 100644
--- a/board/nvidia/harmony/harmony.c
+++ b/board/nvidia/harmony/harmony.c
@@ -6,11 +6,6 @@
  */
 
 #include <common.h>
-#include <lcd.h>
-#include <asm/io.h>
-#include <asm/arch/clock.h>
-#include <asm/arch/tegra.h>
-#include <asm/gpio.h>
 #include <mach/board_init.h>
 #include <mach/pinmux.h>
 #include <mach/spl_uart.h>
diff --git a/board/nvidia/jetson-tk1/jetson-tk1.c b/board/nvidia/jetson-tk1/jetson-tk1.c
index cb2f8abf47bf..a5e958235355 100644
--- a/board/nvidia/jetson-tk1/jetson-tk1.c
+++ b/board/nvidia/jetson-tk1/jetson-tk1.c
@@ -12,7 +12,6 @@
 #include <mach/board_init.h>
 #include <mach/pinmux.h>
 #include <mach/spl_uart.h>
-#include <mach/spl_uart.h>
 #include <mach/tegra_gpio.h>
 #include "pinmux-config-jetson-tk1.h"
 
diff --git a/board/nvidia/nyan-big/nyan-big.c b/board/nvidia/nyan-big/nyan-big.c
index 762dc955d7c1..c38ae8c9a02d 100644
--- a/board/nvidia/nyan-big/nyan-big.c
+++ b/board/nvidia/nyan-big/nyan-big.c
@@ -9,11 +9,8 @@
 #include <errno.h>
 #include <dt-bindings/gpio/tegra-gpio.h>
 #include <power/as3722.h>
-#include <power/pmic.h>
 #include <asm/gpio.h>
-#include <asm/io.h>
 #include <asm/arch/clock.h>
-#include <asm/arch-tegra/clk_rst.h>
 #include <mach/board_init.h>
 #include <mach/pinmux.h>
 #include <mach/tegra_gpio.h>
diff --git a/board/nvidia/seaboard/seaboard.c b/board/nvidia/seaboard/seaboard.c
index 651e74482531..87b5f722fa9c 100644
--- a/board/nvidia/seaboard/seaboard.c
+++ b/board/nvidia/seaboard/seaboard.c
@@ -8,9 +8,6 @@
 #include <common.h>
 #include <dt-bindings/gpio/tegra-gpio.h>
 #include <asm/gpio.h>
-#include <asm/io.h>
-#include <asm/arch/tegra.h>
-#include <asm/arch/clock.h>
 #include <mach/board.h>
 #include <mach/board_init.h>
 #include <mach/pinmux.h>
diff --git a/board/nvidia/venice2/as3722_init.c b/board/nvidia/venice2/as3722_init.c
index 86b164db3be1..e2d52a6e9dbb 100644
--- a/board/nvidia/venice2/as3722_init.c
+++ b/board/nvidia/venice2/as3722_init.c
@@ -6,7 +6,6 @@
  */
 
 #include <common.h>
-#include <asm/io.h>
 #include <mach/tegra_i2c.h>
 #include "as3722_init.h"
 
diff --git a/board/nvidia/whistler/whistler.c b/board/nvidia/whistler/whistler.c
index 38d94223d83f..a6fdaa920d47 100644
--- a/board/nvidia/whistler/whistler.c
+++ b/board/nvidia/whistler/whistler.c
@@ -8,9 +8,6 @@
 #include <common.h>
 #include <dm.h>
 #include <i2c.h>
-#include <asm/io.h>
-#include <asm/arch/tegra.h>
-#include <asm/arch/clock.h>
 #include <asm/gpio.h>
 #include <mach/board_init.h>
 #include <mach/pinmux.h>
diff --git a/board/toradex/apalis_t30/apalis_t30.c b/board/toradex/apalis_t30/apalis_t30.c
index 9670018e1b7f..ad0038fea719 100644
--- a/board/toradex/apalis_t30/apalis_t30.c
+++ b/board/toradex/apalis_t30/apalis_t30.c
@@ -9,7 +9,6 @@
 #include <common.h>
 #include <dm.h>
 #include <i2c.h>
-#include <asm/arch-tegra/tegra.h>
 #include <asm/gpio.h>
 #include <mach/board_init.h>
 #include <mach/pinmux.h>
diff --git a/board/toradex/colibri_t20/colibri_t20.c b/board/toradex/colibri_t20/colibri_t20.c
index a7f15472536c..f753a781aedb 100644
--- a/board/toradex/colibri_t20/colibri_t20.c
+++ b/board/toradex/colibri_t20/colibri_t20.c
@@ -9,8 +9,6 @@
 #include <dt-bindings/gpio/tegra-gpio.h>
 #include <i2c.h>
 #include <asm/gpio.h>
-#include <asm/arch/clock.h>
-#include <asm/arch-tegra/tegra.h>
 #include <mach/board.h>
 #include <mach/board_init.h>
 #include <mach/pinmux.h>
diff --git a/board/toradex/colibri_t30/colibri_t30.c b/board/toradex/colibri_t30/colibri_t30.c
index 8188b2fb64b1..e3b1f2bcf489 100644
--- a/board/toradex/colibri_t30/colibri_t30.c
+++ b/board/toradex/colibri_t30/colibri_t30.c
@@ -7,10 +7,8 @@
  */
 
 #include <common.h>
-#include <i2c.h>
 #include <dt-bindings/gpio/tegra-gpio.h>
 #include <asm/gpio.h>
-#include <asm/arch-tegra/tegra.h>
 #include <mach/board_init.h>
 #include <mach/pinmux.h>
 #include <mach/spl_uart.h>
diff --git a/drivers/gpio/tegra_gpio.c b/drivers/gpio/tegra_gpio.c
index a3b6878e47bd..152c303c4acf 100644
--- a/drivers/gpio/tegra_gpio.c
+++ b/drivers/gpio/tegra_gpio.c
@@ -18,7 +18,6 @@
 #include <fdtdec.h>
 #include <asm/io.h>
 #include <asm/bitops.h>
-#include <asm/arch/tegra.h>
 #include <asm/gpio.h>
 #include <dm/device-internal.h>
 #include <dt-bindings/gpio/gpio.h>
-- 
2.8.1



More information about the U-Boot mailing list