Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 339936
b: refs/heads/master
c: f88095b
h: refs/heads/master
v: v3
  • Loading branch information
Jon Hunter committed Nov 16, 2012
1 parent 13129f3 commit e65b3a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 61b001c564b75bfb47bfb84b33008fc2a35c9a84
refs/heads/master: f88095ba07c312fd4b309545553e1492cb227227
11 changes: 5 additions & 6 deletions trunk/arch/arm/mach-omap2/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,7 @@ static int __init omap_dm_timer_init_one(struct omap_dm_timer *timer,
struct device_node *np;
struct omap_hwmod *oh;
struct resource irq, mem;
int res = 0;
int r;
int r = 0;

if (of_have_populated_dt()) {
np = omap_get_timer_dt(omap_timer_match, NULL);
Expand Down Expand Up @@ -307,10 +306,10 @@ static int __init omap_dm_timer_init_one(struct omap_dm_timer *timer,

src = clk_get(NULL, fck_source);
if (IS_ERR(src)) {
res = -EINVAL;
r = -EINVAL;
} else {
res = clk_set_parent(timer->fclk, src);
if (IS_ERR_VALUE(res))
r = clk_set_parent(timer->fclk, src);
if (IS_ERR_VALUE(r))
pr_warn("%s: %s cannot set source\n",
__func__, oh->name);
clk_put(src);
Expand All @@ -331,7 +330,7 @@ static int __init omap_dm_timer_init_one(struct omap_dm_timer *timer,
timer->rate = clk_get_rate(timer->fclk);
timer->reserved = 1;

return res;
return r;
}

static void __init omap2_gp_clockevent_init(int gptimer_id,
Expand Down

0 comments on commit e65b3a8

Please sign in to comment.