Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 339507
b: refs/heads/master
c: 2577cf2
h: refs/heads/master
i:
  339505: 8e90400
  339503: 583416a
v: v3
  • Loading branch information
Linus Walleij authored and Russell King committed Nov 4, 2012
1 parent 217a9ef commit d02fb80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 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: 871df85a592396b36d4c40b3860e8d7373626552
refs/heads/master: 2577cf246233b1e4e38576f28a5ec05c9c6a6c2a
12 changes: 2 additions & 10 deletions trunk/arch/arm/kernel/smp_twd.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,17 +248,9 @@ static struct clk *twd_get_clock(void)
return clk;
}

err = clk_prepare(clk);
err = clk_prepare_enable(clk);
if (err) {
pr_err("smp_twd: clock failed to prepare: %d\n", err);
clk_put(clk);
return ERR_PTR(err);
}

err = clk_enable(clk);
if (err) {
pr_err("smp_twd: clock failed to enable: %d\n", err);
clk_unprepare(clk);
pr_err("smp_twd: clock failed to prepare+enable: %d\n", err);
clk_put(clk);
return ERR_PTR(err);
}
Expand Down

0 comments on commit d02fb80

Please sign in to comment.