diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2007-10-11 18:46:08 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-10-11 18:46:08 -0400 |
commit | 4b550488f894c899aa54dc935c8fee47bca2b7df (patch) | |
tree | f7ee1d0ff80542124b5fa864a30022277d703c49 /arch/mips/lemote/lm2e/setup.c | |
parent | f5ff0a280201c9cbfb6e9eb4bafdb465c2269ed3 (diff) |
[MIPS] Deforest the function pointer jungle in the time code.
Hard to follow who is pointing what to where and why so it's simply getting
in the way of the time code renovation.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/lemote/lm2e/setup.c')
-rw-r--r-- | arch/mips/lemote/lm2e/setup.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/mips/lemote/lm2e/setup.c b/arch/mips/lemote/lm2e/setup.c index f34350a4f271..09314a20f9fb 100644 --- a/arch/mips/lemote/lm2e/setup.c +++ b/arch/mips/lemote/lm2e/setup.c | |||
@@ -58,13 +58,13 @@ void __init plat_timer_setup(struct irqaction *irq) | |||
58 | setup_irq(MIPS_CPU_IRQ_BASE + 7, irq); | 58 | setup_irq(MIPS_CPU_IRQ_BASE + 7, irq); |
59 | } | 59 | } |
60 | 60 | ||
61 | static void __init loongson2e_time_init(void) | 61 | void __init plat_time_init(void) |
62 | { | 62 | { |
63 | /* setup mips r4k timer */ | 63 | /* setup mips r4k timer */ |
64 | mips_hpt_frequency = cpu_clock_freq / 2; | 64 | mips_hpt_frequency = cpu_clock_freq / 2; |
65 | } | 65 | } |
66 | 66 | ||
67 | static unsigned long __init mips_rtc_get_time(void) | 67 | unsigned long read_persistent_clock(void) |
68 | { | 68 | { |
69 | return mc146818_get_cmos_time(); | 69 | return mc146818_get_cmos_time(); |
70 | } | 70 | } |
@@ -89,9 +89,6 @@ void __init plat_mem_setup(void) | |||
89 | 89 | ||
90 | mips_reboot_setup(); | 90 | mips_reboot_setup(); |
91 | 91 | ||
92 | board_time_init = loongson2e_time_init; | ||
93 | rtc_mips_get_time = mips_rtc_get_time; | ||
94 | |||
95 | __wbflush = wbflush_loongson2e; | 92 | __wbflush = wbflush_loongson2e; |
96 | 93 | ||
97 | add_memory_region(0x0, (memsize << 20), BOOT_MEM_RAM); | 94 | add_memory_region(0x0, (memsize << 20), BOOT_MEM_RAM); |