aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/timer-gp.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/timer-gp.c')
-rw-r--r--arch/arm/mach-omap2/timer-gp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/timer-gp.c b/arch/arm/mach-omap2/timer-gp.c
index a7816dbdc6b1..4e48e786bec7 100644
--- a/arch/arm/mach-omap2/timer-gp.c
+++ b/arch/arm/mach-omap2/timer-gp.c
@@ -202,7 +202,7 @@ static struct clocksource clocksource_gpt = {
202static void __init omap2_gp_clocksource_init(void) 202static void __init omap2_gp_clocksource_init(void)
203{ 203{
204 static struct omap_dm_timer *gpt; 204 static struct omap_dm_timer *gpt;
205 u32 tick_rate, tick_period; 205 u32 tick_rate;
206 static char err1[] __initdata = KERN_ERR 206 static char err1[] __initdata = KERN_ERR
207 "%s: failed to request dm-timer\n"; 207 "%s: failed to request dm-timer\n";
208 static char err2[] __initdata = KERN_ERR 208 static char err2[] __initdata = KERN_ERR
@@ -215,7 +215,6 @@ static void __init omap2_gp_clocksource_init(void)
215 215
216 omap_dm_timer_set_source(gpt, OMAP_TIMER_SRC_SYS_CLK); 216 omap_dm_timer_set_source(gpt, OMAP_TIMER_SRC_SYS_CLK);
217 tick_rate = clk_get_rate(omap_dm_timer_get_fclk(gpt)); 217 tick_rate = clk_get_rate(omap_dm_timer_get_fclk(gpt));
218 tick_period = (tick_rate / HZ) - 1;
219 218
220 omap_dm_timer_set_load_start(gpt, 1, 0); 219 omap_dm_timer_set_load_start(gpt, 1, 0);
221 220