ARM: mx28: Remove CONFIG_ARCH_CPU_INIT
[oweals/u-boot.git] / arch / arm / cpu / arm926ejs / spear / timer.c
index cbef34fab5c5645304115cbef31444b0efb659d4..1dc78600c2b17d5d688ab4fb10b8f434cff17445 100644 (file)
@@ -68,7 +68,9 @@ int timer_init(void)
        /* auto reload, start timer */
        writel(readl(&gpt_regs_p->control) | GPT_ENABLE, &gpt_regs_p->control);
 
-       reset_timer_masked();
+       /* Reset the timer */
+       lastdec = READ_TIMER();
+       timestamp = 0;
 
        return 0;
 }
@@ -97,13 +99,6 @@ void __udelay(unsigned long usec)
                ;
 }
 
-void reset_timer_masked(void)
-{
-       /* reset time */
-       lastdec = READ_TIMER();
-       timestamp = 0;
-}
-
 ulong get_timer_masked(void)
 {
        ulong now = READ_TIMER();