From: Rob Herring Date: Thu, 13 Jun 2013 03:24:50 +0000 (-0500) Subject: ARM: highbank: avoid bss write in timer_init X-Git-Tag: v2013.10-rc1~22^2~84 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0f7cf3803f59b0c8d94aa52cc8827aab28591eb4;p=oweals%2Fu-boot.git ARM: highbank: avoid bss write in timer_init The timer_init function is called before relocation and writes to bss data were corrupting relocation data. Fix this by removing the call to reset_timer_masked. The initial timer count should be 0 or near 0 anyway, so initializing the variables are not needed. Signed-off-by: Rob Herring --- diff --git a/arch/arm/cpu/armv7/highbank/timer.c b/arch/arm/cpu/armv7/highbank/timer.c index d93de1e611..832c0123e5 100644 --- a/arch/arm/cpu/armv7/highbank/timer.c +++ b/arch/arm/cpu/armv7/highbank/timer.c @@ -46,8 +46,6 @@ int timer_init(void) writel(SYSTIMER_EN | SYSTIMER_32BIT | SYSTIMER_PRESC_256, &systimer_base->timer0control); - reset_timer_masked(); - return 0; }