[PATCH 5/6] siemens: board: clean up includes
Enrico Leto
enrico.leto at siemens.com
Tue Nov 21 15:21:33 CET 2023
Many includes were not removed when code parts were moved or removed.
Signed-off-by: Enrico Leto <enrico.leto at siemens.com>
---
board/siemens/common/board.c | 24 +++---------------------
board/siemens/common/factoryset.c | 12 ++----------
board/siemens/draco/board.c | 23 +++++------------------
board/siemens/draco/mux.c | 4 +---
board/siemens/pxm2/board.c | 22 ++++------------------
board/siemens/pxm2/mux.c | 4 +---
board/siemens/rut/board.c | 21 +++------------------
board/siemens/rut/mux.c | 4 +---
8 files changed, 20 insertions(+), 94 deletions(-)
diff --git a/board/siemens/common/board.c b/board/siemens/common/board.c
index 981ffe4e69a..d3e5b83e30f 100644
--- a/board/siemens/common/board.c
+++ b/board/siemens/common/board.c
@@ -8,30 +8,12 @@
* (C) Heiko Schocher, DENX Software Engineering, hs at denx.de.
*/
-#include <common.h>
#include <command.h>
-#include <env.h>
-#include <errno.h>
-#include <init.h>
-#include <malloc.h>
-#include <serial.h>
-#include <spl.h>
-#include <asm/arch/cpu.h>
-#include <asm/arch/hardware.h>
-#include <asm/arch/omap.h>
-#include <asm/arch/ddr_defs.h>
-#include <asm/arch/clock.h>
-#include <asm/arch/gpio.h>
-#include <asm/arch/mmc_host_def.h>
-#include <asm/arch/sys_proto.h>
-#include <asm/global_data.h>
-#include <asm/io.h>
-#include <asm/emif.h>
-#include <asm/gpio.h>
+#include <dm/uclass.h>
#include <i2c.h>
-#include <miiphy.h>
-#include <cpsw.h>
#include <watchdog.h>
+#include <asm/arch/sys_proto.h>
+#include <asm/gpio.h>
#include <asm/mach-types.h>
#include "board.h"
#include "factoryset.h"
diff --git a/board/siemens/common/factoryset.c b/board/siemens/common/factoryset.c
index 8f5cf066664..9adc42ce0b7 100644
--- a/board/siemens/common/factoryset.c
+++ b/board/siemens/common/factoryset.c
@@ -7,21 +7,13 @@
#if !defined(CONFIG_SPL_BUILD)
-#include <common.h>
#include <env.h>
-#include <dm.h>
-#include <env_internal.h>
-#include <i2c.h>
-#include <log.h>
+#include <g_dnl.h>
+#include <net.h>
#include <asm/io.h>
#if !CONFIG_IS_ENABLED(TARGET_GIEDI) && !CONFIG_IS_ENABLED(TARGET_DENEB)
#include <asm/arch/cpu.h>
#endif
-#include <asm/arch/sys_proto.h>
-#include <asm/unaligned.h>
-#include <net.h>
-#include <errno.h>
-#include <g_dnl.h>
#include "board.h"
#include "factoryset.h"
diff --git a/board/siemens/draco/board.c b/board/siemens/draco/board.c
index 821da67e0ba..6a59eaddc24 100644
--- a/board/siemens/draco/board.c
+++ b/board/siemens/draco/board.c
@@ -12,30 +12,17 @@
* Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/
*/
-#include <common.h>
#include <command.h>
+#include <cpsw.h>
#include <env.h>
-#include <errno.h>
#include <init.h>
-#include <net.h>
-#include <spl.h>
-#include <asm/arch/cpu.h>
-#include <asm/arch/hardware.h>
-#include <asm/arch/omap.h>
-#include <asm/arch/ddr_defs.h>
+#include <linux/delay.h>
+#include <nand.h>
#include <asm/arch/clock.h>
-#include <asm/arch/gpio.h>
-#include <asm/arch/mmc_host_def.h>
+#include <asm/arch/ddr_defs.h>
#include <asm/arch/sys_proto.h>
-#include <asm/arch/mem.h>
-#include <asm/io.h>
-#include <asm/emif.h>
#include <asm/gpio.h>
-#include <i2c.h>
-#include <miiphy.h>
-#include <cpsw.h>
-#include <watchdog.h>
-#include <linux/delay.h>
+#include <asm/io.h>
#include "board.h"
#include "../common/board_am335x.h"
#include "../common/factoryset.h"
diff --git a/board/siemens/draco/mux.c b/board/siemens/draco/mux.c
index 1bf0fa961aa..13228039bb7 100644
--- a/board/siemens/draco/mux.c
+++ b/board/siemens/draco/mux.c
@@ -10,12 +10,10 @@
* Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
*/
-#include <common.h>
+#include <asm/io.h>
#include <asm/arch/sys_proto.h>
#include <asm/arch/hardware.h>
#include <asm/arch/mux.h>
-#include <asm/io.h>
-#include <i2c.h>
#include "../common/board_am335x.h"
static struct module_pin_mux uart0_pin_mux[] = {
diff --git a/board/siemens/pxm2/board.c b/board/siemens/pxm2/board.c
index f26e3d8945f..959184008a8 100644
--- a/board/siemens/pxm2/board.c
+++ b/board/siemens/pxm2/board.c
@@ -12,32 +12,18 @@
* Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/
*/
-#include <common.h>
+#include <cpsw.h>
#include <env.h>
-#include <errno.h>
+#include <i2c.h>
#include <init.h>
-#include <log.h>
-#include <malloc.h>
+#include <nand.h>
#include <net.h>
-#include <spl.h>
-#include <asm/arch/cpu.h>
-#include <asm/arch/hardware.h>
-#include <asm/arch/omap.h>
-#include <asm/arch/ddr_defs.h>
#include <asm/arch/clock.h>
-#include <asm/arch/gpio.h>
-#include <asm/arch/mmc_host_def.h>
+#include <asm/arch/ddr_defs.h>
#include <asm/arch/sys_proto.h>
#include <asm/io.h>
-#include <asm/emif.h>
#include <asm/gpio.h>
-#include <i2c.h>
-#include <miiphy.h>
-#include <cpsw.h>
-#include <watchdog.h>
#include "pmic.h"
-#include <nand.h>
-#include <bmp_layout.h>
#include "../common/board_am335x.h"
#include "../common/factoryset.h"
diff --git a/board/siemens/pxm2/mux.c b/board/siemens/pxm2/mux.c
index 50ef657de10..6f4e64c523c 100644
--- a/board/siemens/pxm2/mux.c
+++ b/board/siemens/pxm2/mux.c
@@ -11,12 +11,10 @@
* Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
*/
-#include <common.h>
+#include <asm/io.h>
#include <asm/arch/sys_proto.h>
#include <asm/arch/hardware.h>
#include <asm/arch/mux.h>
-#include <asm/io.h>
-#include <i2c.h>
#include "../common/board_am335x.h"
static struct module_pin_mux uart0_pin_mux[] = {
diff --git a/board/siemens/rut/board.c b/board/siemens/rut/board.c
index 7dd527349a2..3f79502c247 100644
--- a/board/siemens/rut/board.c
+++ b/board/siemens/rut/board.c
@@ -10,31 +10,16 @@
* Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/
*/
-#include <common.h>
+#include <cpsw.h>
#include <env.h>
-#include <errno.h>
#include <init.h>
-#include <malloc.h>
-#include <net.h>
-#include <spi.h>
-#include <spl.h>
-#include <asm/arch/cpu.h>
-#include <asm/arch/hardware.h>
-#include <asm/arch/omap.h>
+#include <linux/delay.h>
+#include <nand.h>
#include <asm/arch/ddr_defs.h>
#include <asm/arch/clock.h>
-#include <asm/arch/gpio.h>
-#include <asm/arch/mmc_host_def.h>
#include <asm/arch/sys_proto.h>
#include <asm/io.h>
-#include <asm/emif.h>
#include <asm/gpio.h>
-#include <i2c.h>
-#include <miiphy.h>
-#include <cpsw.h>
-#include <video.h>
-#include <watchdog.h>
-#include <linux/delay.h>
#include "../common/board_am335x.h"
#include "../common/factoryset.h"
diff --git a/board/siemens/rut/mux.c b/board/siemens/rut/mux.c
index ff752b676a3..c226d299526 100644
--- a/board/siemens/rut/mux.c
+++ b/board/siemens/rut/mux.c
@@ -11,12 +11,10 @@
* Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
*/
-#include <common.h>
+#include <asm/io.h>
#include <asm/arch/sys_proto.h>
#include <asm/arch/hardware.h>
#include <asm/arch/mux.h>
-#include <asm/io.h>
-#include <i2c.h>
#include "../common/board_am335x.h"
static struct module_pin_mux uart0_pin_mux[] = {
--
2.30.2
More information about the U-Boot
mailing list