diff options
author | Andreas Bießmann | 2010-11-30 09:45:05 +0000 |
---|---|---|
committer | Reinhard Meyer | 2010-12-07 22:08:07 +0100 |
commit | 305bf489d1e7dd70f45720720ae0066fcce3acb1 (patch) | |
tree | 6b8a48af0d0f1f63c227f453cdb2075d66f0e25b /arch/arm | |
parent | 0a41edaabb74f2ccfde62a232165088098763e3e (diff) |
arm920t/at91/reset: board_reset: define weak symbol
Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/cpu/arm920t/at91/reset.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/arm/cpu/arm920t/at91/reset.c b/arch/arm/cpu/arm920t/at91/reset.c index ce9c156154f..51043ecddb3 100644 --- a/arch/arm/cpu/arm920t/at91/reset.c +++ b/arch/arm/cpu/arm920t/at91/reset.c @@ -35,7 +35,10 @@ #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), |