From: Jens Scharsig Date: Sat, 7 Aug 2010 17:49:42 +0000 (+0200) Subject: AT91 Fix: return value of get_tbclk X-Git-Tag: v2025.01-rc5-pxa1908~20100^2~3^2~8 X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=c982d866eaee5e8469af9e22eb8f51c63adcfafa;p=u-boot.git 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; }