[PATCH] i2c: pca954x: Remove pointer to GD

Michal Simek michal.simek at amd.com
Thu Aug 1 09:41:25 CEST 2024


There is no reason to have any pointer to GD that's why remove it.

Signed-off-by: Michal Simek <michal.simek at amd.com>
---

 drivers/i2c/muxes/pca954x.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/i2c/muxes/pca954x.c b/drivers/i2c/muxes/pca954x.c
index b4e3e16a9764..795288fe2e94 100644
--- a/drivers/i2c/muxes/pca954x.c
+++ b/drivers/i2c/muxes/pca954x.c
@@ -10,12 +10,9 @@
 #include <i2c.h>
 #include <log.h>
 #include <malloc.h>
-#include <asm/global_data.h>
 
 #include <asm-generic/gpio.h>
 
-DECLARE_GLOBAL_DATA_PTR;
-
 enum pca_type {
 	PCA9543,
 	PCA9544,
-- 
2.43.0



More information about the U-Boot mailing list