arm920t/at91/reset: board_reset: define weak symbol
authorAndreas Bießmann <biessmann@corscience.de>
Tue, 30 Nov 2010 09:45:05 +0000 (09:45 +0000)
committerReinhard Meyer <u-boot@emk-elektronik.de>
Tue, 7 Dec 2010 21:08:07 +0000 (22:08 +0100)
Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
arch/arm/cpu/arm920t/at91/reset.c

index ce9c156154f1e3252d6770999a5eb2c196efa38c..51043ecddb3f66a5c0d56e13fdbd71e37cafeb77 100644 (file)
 #include <asm/arch/hardware.h>
 #include <asm/arch/at91_st.h>
 
-void board_reset(void) __attribute__((__weak__));
+void  __attribute__((weak)) board_reset(void)
+{
+       /* true empty function for defining weak symbol */
+}
 
 void reset_cpu(ulong ignored)
 {
@@ -45,8 +48,7 @@ void reset_cpu(ulong ignored)
        serial_exit();
 #endif
 
-       if (board_reset)
-               board_reset();
+       board_reset();
 
        /* Reset the cpu by setting up the watchdog timer */
        writel(AT91_ST_WDMR_RSTEN | AT91_ST_WDMR_EXTEN | AT91_ST_WDMR_WDV(2),