[U-Boot] [PATCHv2 1/6] am33xx/board.c: make wdtimer/uart_base static

Peter Korsgaard peter.korsgaard at barco.com
Thu Oct 18 13:21:08 CEST 2012


Only used here (and uart_base only for SPL).

Signed-off-by: Peter Korsgaard <peter.korsgaard at barco.com>
---
 arch/arm/cpu/armv7/am33xx/board.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/arch/arm/cpu/armv7/am33xx/board.c b/arch/arm/cpu/armv7/am33xx/board.c
index 6de03fd..0e93227 100644
--- a/arch/arm/cpu/armv7/am33xx/board.c
+++ b/arch/arm/cpu/armv7/am33xx/board.c
@@ -36,8 +36,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
 
 static const struct gpio_bank gpio_bank_am33xx[4] = {
 	{ (void *)AM33XX_GPIO0_BASE, METHOD_GPIO_24XX },
-- 
1.7.10.4



More information about the U-Boot mailing list