aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/timer.c')
-rw-r--r--arch/arm/mach-omap2/timer.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/arch/arm/mach-omap2/timer.c b/arch/arm/mach-omap2/timer.c
index e9fcc5faff5c..1a662dfdda11 100644
--- a/arch/arm/mach-omap2/timer.c
+++ b/arch/arm/mach-omap2/timer.c
@@ -246,8 +246,7 @@ static int __init omap_dm_timer_init_one(struct omap_dm_timer *timer,
246 struct device_node *np; 246 struct device_node *np;
247 struct omap_hwmod *oh; 247 struct omap_hwmod *oh;
248 struct resource irq, mem; 248 struct resource irq, mem;
249 int res = 0; 249 int r = 0;
250 int r;
251 250
252 if (of_have_populated_dt()) { 251 if (of_have_populated_dt()) {
253 np = omap_get_timer_dt(omap_timer_match, NULL); 252 np = omap_get_timer_dt(omap_timer_match, NULL);
@@ -307,10 +306,10 @@ static int __init omap_dm_timer_init_one(struct omap_dm_timer *timer,
307 306
308 src = clk_get(NULL, fck_source); 307 src = clk_get(NULL, fck_source);
309 if (IS_ERR(src)) { 308 if (IS_ERR(src)) {
310 res = -EINVAL; 309 r = -EINVAL;
311 } else { 310 } else {
312 res = clk_set_parent(timer->fclk, src); 311 r = clk_set_parent(timer->fclk, src);
313 if (IS_ERR_VALUE(res)) 312 if (IS_ERR_VALUE(r))
314 pr_warn("%s: %s cannot set source\n", 313 pr_warn("%s: %s cannot set source\n",
315 __func__, oh->name); 314 __func__, oh->name);
316 clk_put(src); 315 clk_put(src);
@@ -331,7 +330,7 @@ static int __init omap_dm_timer_init_one(struct omap_dm_timer *timer,
331 timer->rate = clk_get_rate(timer->fclk); 330 timer->rate = clk_get_rate(timer->fclk);
332 timer->reserved = 1; 331 timer->reserved = 1;
333 332
334 return res; 333 return r;
335} 334}
336 335
337static void __init omap2_gp_clockevent_init(int gptimer_id, 336static void __init omap2_gp_clockevent_init(int gptimer_id,