diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2006-07-09 16:38:56 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2006-07-13 16:26:17 -0400 |
commit | 54d0a216f40e060ba4265bb851cc36b3ca55d1a8 (patch) | |
tree | a57ecc2da68fea0989c397bd97ebd38e93fee569 /arch/mips/lasat | |
parent | 2c70df5b9807293705d8123d1f36579831ac09eb (diff) |
[MIPS] Replace board_timer_setup function pointer by plat_timer_setup.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
---
Diffstat (limited to 'arch/mips/lasat')
-rw-r--r-- | arch/mips/lasat/setup.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/mips/lasat/setup.c b/arch/mips/lasat/setup.c index 2187e63c6d88..0ffc43c600d9 100644 --- a/arch/mips/lasat/setup.c +++ b/arch/mips/lasat/setup.c | |||
@@ -115,12 +115,9 @@ static void lasat_time_init(void) | |||
115 | mips_hpt_frequency = lasat_board_info.li_cpu_hz / 2; | 115 | mips_hpt_frequency = lasat_board_info.li_cpu_hz / 2; |
116 | } | 116 | } |
117 | 117 | ||
118 | static void lasat_timer_setup(struct irqaction *irq) | 118 | void __init plat_timer_setup(struct irqaction *irq) |
119 | { | 119 | { |
120 | 120 | write_c0_compare( read_c0_count() + mips_hpt_frequency / HZ); | |
121 | write_c0_compare( | ||
122 | read_c0_count() + | ||
123 | mips_hpt_frequency / HZ); | ||
124 | change_c0_status(ST0_IM, IE_IRQ0 | IE_IRQ5); | 121 | change_c0_status(ST0_IM, IE_IRQ0 | IE_IRQ5); |
125 | } | 122 | } |
126 | 123 | ||
@@ -170,7 +167,6 @@ void __init plat_mem_setup(void) | |||
170 | lasat_reboot_setup(); | 167 | lasat_reboot_setup(); |
171 | 168 | ||
172 | board_time_init = lasat_time_init; | 169 | board_time_init = lasat_time_init; |
173 | board_timer_setup = lasat_timer_setup; | ||
174 | 170 | ||
175 | #ifdef CONFIG_DS1603 | 171 | #ifdef CONFIG_DS1603 |
176 | ds1603 = &ds_defs[mips_machtype]; | 172 | ds1603 = &ds_defs[mips_machtype]; |