summaryrefslogtreecommitdiff
path: root/arch/sh
diff options
context:
space:
mode:
authorPeng Fan <[email protected]>2026-02-09 09:30:18 +0800
committerTom Rini <[email protected]>2026-02-17 13:50:22 -0600
commit0f90b1e715f8abe41b0875752eb184f46032ff11 (patch)
treea9fb9e93d8dca6895b94e17cdbe4ec7f596ca40a /arch/sh
parent406982f091c76e6ce0734373426bd756f97d64e9 (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 'arch/sh')
-rw-r--r--arch/sh/lib/bootm.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/sh/lib/bootm.c b/arch/sh/lib/bootm.c
index bb0f59e0aa2..1c118870dad 100644
--- a/arch/sh/lib/bootm.c
+++ b/arch/sh/lib/bootm.c
@@ -13,11 +13,8 @@
#include <env.h>
#include <image.h>
#include <asm/byteorder.h>
-#include <asm/global_data.h>
#include <asm/zimage.h>
-DECLARE_GLOBAL_DATA_PTR;
-
#ifdef CONFIG_SH_SDRAM_OFFSET
#define GET_INITRD_START(initrd, linux) (initrd - linux + CONFIG_SH_SDRAM_OFFSET)
#else