summaryrefslogtreecommitdiff
path: root/common
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 /common
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 'common')
-rw-r--r--common/cli_hush.c3
-rw-r--r--common/stdio.c3
2 files changed, 0 insertions, 6 deletions
diff --git a/common/cli_hush.c b/common/cli_hush.c
index fb087960c92..fe8fe93bd54 100644
--- a/common/cli_hush.c
+++ b/common/cli_hush.c
@@ -84,7 +84,6 @@
#include <cli_hush.h>
#include <command.h> /* find_cmd */
#include <vsprintf.h>
-#include <asm/global_data.h>
#endif
#ifndef __U_BOOT__
#include <ctype.h> /* isalpha, isdigit */
@@ -125,8 +124,6 @@
#endif
#ifdef __U_BOOT__
-DECLARE_GLOBAL_DATA_PTR;
-
#define EXIT_SUCCESS 0
#define EOF -1
#define syntax() syntax_err()
diff --git a/common/stdio.c b/common/stdio.c
index 3eeb289dd8b..fc965944209 100644
--- a/common/stdio.c
+++ b/common/stdio.c
@@ -18,11 +18,8 @@
#include <serial.h>
#include <splash.h>
#include <i2c.h>
-#include <asm/global_data.h>
#include <dm/device-internal.h>
-DECLARE_GLOBAL_DATA_PTR;
-
static struct stdio_dev devs;
struct stdio_dev *stdio_devices[] = { NULL, NULL, NULL };
char *stdio_names[MAX_FILES] = { "stdin", "stdout", "stderr" };