v4 of the SPL rework introduced some small issues. This patch fixes
them.

Signed-off-by: Stefan Roese <s...@denx.de>
---

 arch/arm/lib/spl.c | 2 ++
 common/spl/spl.c   | 2 --
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/lib/spl.c b/arch/arm/lib/spl.c
index 2d1f47a..3a5c593 100644
--- a/arch/arm/lib/spl.c
+++ b/arch/arm/lib/spl.c
@@ -33,6 +33,8 @@ DECLARE_GLOBAL_DATA_PTR;
 
 extern char __bss_start[], __bss_end__[];
 
+gd_t gdata __attribute__ ((section(".data")));
+
 /*
  * In the context of SPL, board_init_f must ensure that any clocks/etc for
  * DDR are enabled, ensure that the stack pointer is valid, clear the BSS
diff --git a/common/spl/spl.c b/common/spl/spl.c
index eaea1c8..d36416c 100644
--- a/common/spl/spl.c
+++ b/common/spl/spl.c
@@ -43,8 +43,6 @@ DECLARE_GLOBAL_DATA_PTR;
 u32 *boot_params_ptr = NULL;
 struct spl_image_info spl_image;
 
-/* Define global data structure pointer to it*/
-gd_t gdata __attribute__ ((section(".data")));
 static bd_t bdata __attribute__ ((section(".data")));
 
 inline void hang(void)
-- 
1.7.12

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to