Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 308259
b: refs/heads/master
c: 39d1367
h: refs/heads/master
i:
  308257: 34c465a
  308255: da1edb6
v: v3
  • Loading branch information
Shawn Guo committed May 8, 2012
1 parent 18c0e87 commit d79b874
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7d81397cd93da2850e0aec54c3ba4eb4908a675b
refs/heads/master: 39d1367e11e406ddb9bcd5f2e4798f3c355db7d9
9 changes: 9 additions & 0 deletions trunk/arch/arm/mach-mxs/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* MA 02110-1301, USA.
*/

#include <linux/err.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/clockchips.h>
Expand Down Expand Up @@ -245,6 +246,14 @@ static int __init mxs_clocksource_init(struct clk *timer_clk)

void __init mxs_timer_init(struct clk *timer_clk, int irq)
{
if (!timer_clk) {
timer_clk = clk_get_sys("timrot", NULL);
if (IS_ERR(timer_clk)) {
pr_err("%s: failed to get clk\n", __func__);
return;
}
}

clk_prepare_enable(timer_clk);

/*
Expand Down

0 comments on commit d79b874

Please sign in to comment.