提交 0f7cf380 编写于 作者: R Rob Herring 提交者: Albert ARIBAUD

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: NRob Herring <rob.herring@calxeda.com>
上级 714d1f5d
......@@ -46,8 +46,6 @@ int timer_init(void)
writel(SYSTIMER_EN | SYSTIMER_32BIT | SYSTIMER_PRESC_256,
&systimer_base->timer0control);
reset_timer_masked();
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册