diff options
| author | Peng Fan <[email protected]> | 2026-02-09 09:30:18 +0800 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-02-17 13:50:22 -0600 |
| commit | 0f90b1e715f8abe41b0875752eb184f46032ff11 (patch) | |
| tree | a9fb9e93d8dca6895b94e17cdbe4ec7f596ca40a /board/BuR | |
| parent | 406982f091c76e6ce0734373426bd756f97d64e9 (diff) | |
treewide: Clean up DECLARE_GLOBAL_DATA_PTR usage
Remove DECLARE_GLOBAL_DATA_PTR from files where gd is not used, and
drop the unnecessary inclusion of asm/global_data.h.
Headers should be included directly by the files that need them,
rather than indirectly via global_data.h.
Reviewed-by: Patrice Chotard <[email protected]> #STMicroelectronics boards and STM32MP1 ram test driver
Tested-by: Anshul Dalal <[email protected]> #TI boards
Acked-by: Yao Zi <[email protected]> #TH1520
Signed-off-by: Peng Fan <[email protected]>
Diffstat (limited to 'board/BuR')
| -rw-r--r-- | board/BuR/brsmarc1/board.c | 3 | ||||
| -rw-r--r-- | board/BuR/common/common.c | 3 |
2 files changed, 0 insertions, 6 deletions
diff --git a/board/BuR/brsmarc1/board.c b/board/BuR/brsmarc1/board.c index c05eec6b35e..01d7a8c39e2 100644 --- a/board/BuR/brsmarc1/board.c +++ b/board/BuR/brsmarc1/board.c @@ -18,7 +18,6 @@ #include <asm/arch/clock.h> #include <asm/arch/sys_proto.h> #include <asm/arch/mem.h> -#include <asm/global_data.h> #include <asm/io.h> #include <asm/gpio.h> #include <asm/emif.h> @@ -30,8 +29,6 @@ /* -- defines for used GPIO Hardware -- */ #define PER_RESET (2 * 32 + 0) -DECLARE_GLOBAL_DATA_PTR; - #if defined(CONFIG_XPL_BUILD) static const struct ddr_data ddr3_data = { .datardsratio0 = MT41K256M16HA125E_RD_DQS, diff --git a/board/BuR/common/common.c b/board/BuR/common/common.c index 3513f43a9f5..bbafecd7909 100644 --- a/board/BuR/common/common.c +++ b/board/BuR/common/common.c @@ -13,12 +13,9 @@ #include <env.h> #include <fdtdec.h> #include <i2c.h> -#include <asm/global_data.h> #include <linux/delay.h> #include "bur_common.h" -DECLARE_GLOBAL_DATA_PTR; - /* --------------------------------------------------------------------------*/ int ft_board_setup(void *blob, struct bd_info *bd) |
