From: Yoichi Yuasa Date: Wed, 12 Dec 2007 13:11:09 +0000 (+0900) Subject: [MIPS] move vr41xx_calculate_clock_frequency() to plat_time_init() X-Git-Tag: v2.6.25-rc1~1163^2~28 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=991f8b6ac5a7284612679f4a095578b460555e8f;p=linux-2.6-omap-h63xx.git [MIPS] move vr41xx_calculate_clock_frequency() to plat_time_init() Moved vr41xx_calculate_clock_frequency() to plat_time_init(). This function relates to the timer function. Signed-off-by: Yoichi Yuasa Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/vr41xx/common/init.c b/arch/mips/vr41xx/common/init.c index 8d760df686c..76d4b5ed3fc 100644 --- a/arch/mips/vr41xx/common/init.c +++ b/arch/mips/vr41xx/common/init.c @@ -40,6 +40,8 @@ void __init plat_time_init(void) { unsigned long tclock; + vr41xx_calculate_clock_frequency(); + tclock = vr41xx_get_tclock_frequency(); if (current_cpu_data.processor_id == PRID_VR4131_REV2_0 || current_cpu_data.processor_id == PRID_VR4131_REV2_1) @@ -50,8 +52,6 @@ void __init plat_time_init(void) void __init plat_mem_setup(void) { - vr41xx_calculate_clock_frequency(); - iomem_resource_init(); }