summaryrefslogtreecommitdiff
path: root/board/samsung
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 /board/samsung
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 'board/samsung')
-rw-r--r--board/samsung/common/exynos5-dt.c3
-rw-r--r--board/samsung/common/misc.c3
2 files changed, 0 insertions, 6 deletions
diff --git a/board/samsung/common/exynos5-dt.c b/board/samsung/common/exynos5-dt.c
index 68edd1ec282..2ba2d6330fd 100644
--- a/board/samsung/common/exynos5-dt.c
+++ b/board/samsung/common/exynos5-dt.c
@@ -9,7 +9,6 @@
#include <env.h>
#include <fdtdec.h>
#include <log.h>
-#include <asm/global_data.h>
#include <asm/io.h>
#include <errno.h>
#include <i2c.h>
@@ -36,8 +35,6 @@
#include <samsung/misc.h>
#include <tmu.h>
-DECLARE_GLOBAL_DATA_PTR;
-
static int exynos_set_regulator(const char *name, uint uv)
{
struct udevice *dev;
diff --git a/board/samsung/common/misc.c b/board/samsung/common/misc.c
index c134a9d70e2..85e564f27ee 100644
--- a/board/samsung/common/misc.c
+++ b/board/samsung/common/misc.c
@@ -8,7 +8,6 @@
#include <command.h>
#include <env.h>
#include <libtizen.h>
-#include <asm/global_data.h>
#include <linux/delay.h>
#include <linux/printk.h>
#include <samsung/misc.h>
@@ -37,8 +36,6 @@
#include <power/pmic.h>
#include <mmc.h>
-DECLARE_GLOBAL_DATA_PTR;
-
#ifdef CONFIG_SET_DFU_ALT_INFO
void set_dfu_alt_info(char *interface, char *devstr)
{