[U-Boot] [PATCH 2/5] am335x/evm.c: don't make wdtimer/uart_base global

Peter Korsgaard peter.korsgaard at barco.com
Tue Oct 16 17:15:23 CEST 2012


Only used here (and for SPL).

Signed-off-by: Peter Korsgaard <peter.korsgaard at barco.com>
---
 board/ti/am335x/evm.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/board/ti/am335x/evm.c b/board/ti/am335x/evm.c
index a1fa443..9dd372c 100644
--- a/board/ti/am335x/evm.c
+++ b/board/ti/am335x/evm.c
@@ -37,8 +37,10 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-struct wd_timer *wdtimer = (struct wd_timer *)WDT_BASE;
-struct uart_sys *uart_base = (struct uart_sys *)DEFAULT_UART_BASE;
+static struct wd_timer *wdtimer = (struct wd_timer *)WDT_BASE;
+#ifdef CONFIG_SPL_BUILD
+static struct uart_sys *uart_base = (struct uart_sys *)DEFAULT_UART_BASE;
+#endif
 
 /* MII mode defines */
 #define MII_MODE_ENABLE		0x0
-- 
1.7.10.4



More information about the U-Boot mailing list