diff mbox series

i2c: pca954x: Remove pointer to GD

Message ID c6a515e15b855a9a53edf642f161432b5db64198.1722498084.git.michal.simek@amd.com
State Accepted
Commit 3c91589a14c9a39b0e0e440b5af4273b6147a8d2
Delegated to: Heiko Schocher
Headers show
Series i2c: pca954x: Remove pointer to GD | expand

Commit Message

Michal Simek Aug. 1, 2024, 7:41 a.m. UTC
There is no reason to have any pointer to GD that's why remove it.

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

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

Comments

Heiko Schocher Aug. 1, 2024, 10:24 a.m. UTC | #1
Hello Michal,

On 01.08.24 09:41, Michal Simek wrote:
> There is no reason to have any pointer to GD that's why remove it.
> 
> Signed-off-by: Michal Simek <michal.simek@amd.com>
> ---
> 
>   drivers/i2c/muxes/pca954x.c | 3 ---
>   1 file changed, 3 deletions(-)

Reviewed-by: Heiko Schocher <hs@denx.de>

Thanks!

bye,
Heiko
diff mbox series

Patch

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,