From: Jens Scharsig Date: Sat, 7 Aug 2010 17:49:42 +0000 (+0200) Subject: AT91 Fix: return value of get_tbclk X-Git-Tag: v2010.09-rc1~1^2~3^2~8 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c982d866eaee5e8469af9e22eb8f51c63adcfafa;p=u-boot AT91 Fix: return value of get_tbclk * Fix: return value of get_tbclk * this fixes issue with prematurely restart/retry, if BOOT_RETRY_TIMEOUT is used Signed-off-by: Jens Scharsig --- diff --git a/arch/arm/cpu/arm926ejs/at91/timer.c b/arch/arm/cpu/arm926ejs/at91/timer.c index d21eebfb4e..8efc34bcf1 100644 --- a/arch/arm/cpu/arm926ejs/at91/timer.c +++ b/arch/arm/cpu/arm926ejs/at91/timer.c @@ -138,8 +138,5 @@ ulong get_timer(ulong base) */ ulong get_tbclk(void) { - ulong tbclk; - - tbclk = CONFIG_SYS_HZ; - return tbclk; + return timer_freq; }