[PATCH] spi: zynqmp: Remove gd reference

Michal Simek michal.simek at xilinx.com
Mon Apr 26 08:27:56 CEST 2021


gd is not used in this file that's why doesn't make sense to declare it.

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

 drivers/spi/zynqmp_gqspi.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/spi/zynqmp_gqspi.c b/drivers/spi/zynqmp_gqspi.c
index 900cb2610c7f..eee8e9df0f7d 100644
--- a/drivers/spi/zynqmp_gqspi.c
+++ b/drivers/spi/zynqmp_gqspi.c
@@ -10,7 +10,6 @@
 #include <log.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/cache.h>
-#include <asm/global_data.h>
 #include <asm/io.h>
 #include <clk.h>
 #include <dm.h>
@@ -156,8 +155,6 @@ struct zynqmp_qspi_dma_regs {
 	u32 dmadstmsb;	/* 0x28 */
 };
 
-DECLARE_GLOBAL_DATA_PTR;
-
 struct zynqmp_qspi_plat {
 	struct zynqmp_qspi_regs *regs;
 	struct zynqmp_qspi_dma_regs *dma_regs;
-- 
2.31.1



More information about the U-Boot mailing list