diff options
Diffstat (limited to 'arch/arm/mach-h720x/cpu-h7201.c')
-rw-r--r-- | arch/arm/mach-h720x/cpu-h7201.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/arch/arm/mach-h720x/cpu-h7201.c b/arch/arm/mach-h720x/cpu-h7201.c index 24df2a349a98..13c741215387 100644 --- a/arch/arm/mach-h720x/cpu-h7201.c +++ b/arch/arm/mach-h720x/cpu-h7201.c | |||
@@ -44,8 +44,10 @@ static struct irqaction h7201_timer_irq = { | |||
44 | /* | 44 | /* |
45 | * Setup TIMER0 as system timer | 45 | * Setup TIMER0 as system timer |
46 | */ | 46 | */ |
47 | void __init h7201_init_time(void) | 47 | void __init h7201_timer_init(void) |
48 | { | 48 | { |
49 | arch_gettimeoffset = h720x_gettimeoffset; | ||
50 | |||
49 | CPU_REG (TIMER_VIRT, TM0_PERIOD) = LATCH; | 51 | CPU_REG (TIMER_VIRT, TM0_PERIOD) = LATCH; |
50 | CPU_REG (TIMER_VIRT, TM0_CTRL) = TM_RESET; | 52 | CPU_REG (TIMER_VIRT, TM0_CTRL) = TM_RESET; |
51 | CPU_REG (TIMER_VIRT, TM0_CTRL) = TM_REPEAT | TM_START; | 53 | CPU_REG (TIMER_VIRT, TM0_CTRL) = TM_REPEAT | TM_START; |
@@ -53,8 +55,3 @@ void __init h7201_init_time(void) | |||
53 | 55 | ||
54 | setup_irq(IRQ_TIMER0, &h7201_timer_irq); | 56 | setup_irq(IRQ_TIMER0, &h7201_timer_irq); |
55 | } | 57 | } |
56 | |||
57 | struct sys_timer h7201_timer = { | ||
58 | .init = h7201_init_time, | ||
59 | .offset = h720x_gettimeoffset, | ||
60 | }; | ||