diff options
| author | Peng Fan <[email protected]> | 2026-04-21 21:41:15 +0800 |
|---|---|---|
| committer | Fabio Estevam <[email protected]> | 2026-04-21 20:49:39 -0300 |
| commit | 27d49fc9ec7d6c92ef77cfdc32185499c264ee42 (patch) | |
| tree | 676a6eb536f98125e979bac0d239e3bb6f61a690 | |
| parent | bb95b5258223e0aa2014bae8270719007bfa7bbb (diff) | |
imx8mq: phanbell: drop redundant gd clearing in board_init_f
The global data (gd) area is already zeroed in
board_init_f_init_reserve() before board_init_f() is called.
Remove the duplicate gd clearing from board_init_f().
Signed-off-by: Peng Fan <[email protected]>
| -rw-r--r-- | board/google/imx8mq_phanbell/spl.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/board/google/imx8mq_phanbell/spl.c b/board/google/imx8mq_phanbell/spl.c index cfba9300dcb..642167bca59 100644 --- a/board/google/imx8mq_phanbell/spl.c +++ b/board/google/imx8mq_phanbell/spl.c @@ -6,7 +6,6 @@ #include <config.h> #include <hang.h> -#include <asm/global_data.h> #include <asm/io.h> #include <errno.h> #include <init.h> @@ -25,8 +24,6 @@ #include <mmc.h> #include <spl.h> -DECLARE_GLOBAL_DATA_PTR; - static void spl_dram_init(void) { /* ddr init */ @@ -153,9 +150,6 @@ void board_init_f(ulong dummy) { int ret; - /* Clear global data */ - memset((void *)gd, 0, sizeof(gd_t)); - arch_cpu_init(); init_uart_clk(0); |
