summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/arm920t/imx/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/cpu/arm920t/imx/timer.c')
-rw-r--r--arch/arm/cpu/arm920t/imx/timer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/cpu/arm920t/imx/timer.c b/arch/arm/cpu/arm920t/imx/timer.c
index 928990578b..96fff3f683 100644
--- a/arch/arm/cpu/arm920t/imx/timer.c
+++ b/arch/arm/cpu/arm920t/imx/timer.c
@@ -36,14 +36,14 @@ int timer_init (void)
/*
* timer without interrupts
*/
-ulong get_timer (ulong base)
+static ulong get_timer_masked (void)
{
- return get_timer_masked() - base;
+ return TCN1;
}
-ulong get_timer_masked (void)
+ulong get_timer (ulong base)
{
- return TCN1;
+ return get_timer_masked() - base;
}
void __udelay (unsigned long usec)