Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 308263
b: refs/heads/master
c: 5026092
h: refs/heads/master
i:
  308261: 77f799c
  308259: d79b874
  308255: da1edb6
v: v3
  • Loading branch information
Shawn Guo committed May 8, 2012
1 parent 26e7d5c commit 2a060fa
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 13 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: 5da301a2056529cc5366f21d4325b96052d9cad1
refs/heads/master: 50260924afd4b745bfb6e5f1caee381a1875fc31
4 changes: 1 addition & 3 deletions trunk/arch/arm/mach-mxs/include/mach/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@
#ifndef __MACH_MXS_COMMON_H__
#define __MACH_MXS_COMMON_H__

struct clk;

extern const u32 *mxs_get_ocotp(void);
extern int mxs_reset_block(void __iomem *);
extern void mxs_timer_init(struct clk *, int);
extern void mxs_timer_init(int);
extern void mxs_restart(char, const char *);
extern int mxs_saif_clkmux_select(unsigned int clkmux);

Expand Down
14 changes: 7 additions & 7 deletions trunk/arch/arm/mach-mxs/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,14 +244,14 @@ static int __init mxs_clocksource_init(struct clk *timer_clk)
return 0;
}

void __init mxs_timer_init(struct clk *timer_clk, int irq)
void __init mxs_timer_init(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;
}
struct clk *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
2 changes: 1 addition & 1 deletion trunk/drivers/clk/mxs/clk-imx23.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ int __init mx23_clocks_init(void)
for (i = 0; i < ARRAY_SIZE(clks_init_on); i++)
clk_prepare_enable(clks[clks_init_on[i]]);

mxs_timer_init(NULL, MX23_INT_TIMER0);
mxs_timer_init(MX23_INT_TIMER0);

return 0;
}
2 changes: 1 addition & 1 deletion trunk/drivers/clk/mxs/clk-imx28.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ int __init mx28_clocks_init(void)
for (i = 0; i < ARRAY_SIZE(clks_init_on); i++)
clk_prepare_enable(clks[clks_init_on[i]]);

mxs_timer_init(NULL, MX28_INT_TIMER0);
mxs_timer_init(MX28_INT_TIMER0);

return 0;
}

0 comments on commit 2a060fa

Please sign in to comment.