[PATCH 10/14] nxp: emc2305: Cleanup headers
Peng Fan (OSS)
peng.fan at oss.nxp.com
Tue Feb 3 11:41:41 CET 2026
From: Peng Fan <peng.fan at nxp.com>
There is no user of gd, drop the usage of DECLARE_GLOBAL_DATA_PTR and
the including of "asm/global_data.h". Include config.h to avoid
build error.
Signed-off-by: Peng Fan <peng.fan at nxp.com>
---
board/nxp/common/emc2305.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/board/nxp/common/emc2305.c b/board/nxp/common/emc2305.c
index 50252bb5007f667bd53115922b9c8d06e76f7f61..7e5151eaf5f9f31cb0eba3f85115c0dec46f096f 100644
--- a/board/nxp/common/emc2305.c
+++ b/board/nxp/common/emc2305.c
@@ -4,15 +4,13 @@
*
*/
+#include <config.h>
#include <command.h>
#include <i2c.h>
-#include <asm/global_data.h>
#include <asm/io.h>
#include "emc2305.h"
-DECLARE_GLOBAL_DATA_PTR;
-
void set_fan_speed(u8 data, int chip_addr)
{
u8 index;
--
2.37.1
More information about the U-Boot
mailing list