From: Peng Fan Date: Tue, 21 Apr 2026 13:41:15 +0000 (+0800) Subject: imx8mq: phanbell: drop redundant gd clearing in board_init_f X-Git-Tag: v2026.07-rc1~29^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27d49fc9ec7d6c92ef77cfdc32185499c264ee42;p=thirdparty%2Fu-boot.git 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 --- 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 #include -#include #include #include #include @@ -25,8 +24,6 @@ #include #include -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);