diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2012-04-28 12:02:41 -0400 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2012-05-08 12:02:43 -0400 |
commit | 50260924afd4b745bfb6e5f1caee381a1875fc31 (patch) | |
tree | 29c1908a66df3d3ea498e4941ee08d4c8af082bd | |
parent | 5da301a2056529cc5366f21d4325b96052d9cad1 (diff) |
ARM: mxs: remove now unused timer_clk argument from mxs_timer_init
With old mxs clock support removed, the timer_clk argument of
mxs_timer_init is unused now, so remove it.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
-rw-r--r-- | arch/arm/mach-mxs/include/mach/common.h | 4 | ||||
-rw-r--r-- | arch/arm/mach-mxs/timer.c | 14 | ||||
-rw-r--r-- | drivers/clk/mxs/clk-imx23.c | 2 | ||||
-rw-r--r-- | drivers/clk/mxs/clk-imx28.c | 2 |
4 files changed, 10 insertions, 12 deletions
diff --git a/arch/arm/mach-mxs/include/mach/common.h b/arch/arm/mach-mxs/include/mach/common.h index e1237ab25862..9bdc95388871 100644 --- a/arch/arm/mach-mxs/include/mach/common.h +++ b/arch/arm/mach-mxs/include/mach/common.h | |||
@@ -11,11 +11,9 @@ | |||
11 | #ifndef __MACH_MXS_COMMON_H__ | 11 | #ifndef __MACH_MXS_COMMON_H__ |
12 | #define __MACH_MXS_COMMON_H__ | 12 | #define __MACH_MXS_COMMON_H__ |
13 | 13 | ||
14 | struct clk; | ||
15 | |||
16 | extern const u32 *mxs_get_ocotp(void); | 14 | extern const u32 *mxs_get_ocotp(void); |
17 | extern int mxs_reset_block(void __iomem *); | 15 | extern int mxs_reset_block(void __iomem *); |
18 | extern void mxs_timer_init(struct clk *, int); | 16 | extern void mxs_timer_init(int); |
19 | extern void mxs_restart(char, const char *); | 17 | extern void mxs_restart(char, const char *); |
20 | extern int mxs_saif_clkmux_select(unsigned int clkmux); | 18 | extern int mxs_saif_clkmux_select(unsigned int clkmux); |
21 | 19 | ||
diff --git a/arch/arm/mach-mxs/timer.c b/arch/arm/mach-mxs/timer.c index 575e8fd6bc79..02d36de9c4e8 100644 --- a/arch/arm/mach-mxs/timer.c +++ b/arch/arm/mach-mxs/timer.c | |||
@@ -244,14 +244,14 @@ static int __init mxs_clocksource_init(struct clk *timer_clk) | |||
244 | return 0; | 244 | return 0; |
245 | } | 245 | } |
246 | 246 | ||
247 | void __init mxs_timer_init(struct clk *timer_clk, int irq) | 247 | void __init mxs_timer_init(int irq) |
248 | { | 248 | { |
249 | if (!timer_clk) { | 249 | struct clk *timer_clk; |
250 | timer_clk = clk_get_sys("timrot", NULL); | 250 | |
251 | if (IS_ERR(timer_clk)) { | 251 | timer_clk = clk_get_sys("timrot", NULL); |
252 | pr_err("%s: failed to get clk\n", __func__); | 252 | if (IS_ERR(timer_clk)) { |
253 | return; | 253 | pr_err("%s: failed to get clk\n", __func__); |
254 | } | 254 | return; |
255 | } | 255 | } |
256 | 256 | ||
257 | clk_prepare_enable(timer_clk); | 257 | clk_prepare_enable(timer_clk); |
diff --git a/drivers/clk/mxs/clk-imx23.c b/drivers/clk/mxs/clk-imx23.c index 2ec76ff46971..dcae11285716 100644 --- a/drivers/clk/mxs/clk-imx23.c +++ b/drivers/clk/mxs/clk-imx23.c | |||
@@ -198,7 +198,7 @@ int __init mx23_clocks_init(void) | |||
198 | for (i = 0; i < ARRAY_SIZE(clks_init_on); i++) | 198 | for (i = 0; i < ARRAY_SIZE(clks_init_on); i++) |
199 | clk_prepare_enable(clks[clks_init_on[i]]); | 199 | clk_prepare_enable(clks[clks_init_on[i]]); |
200 | 200 | ||
201 | mxs_timer_init(NULL, MX23_INT_TIMER0); | 201 | mxs_timer_init(MX23_INT_TIMER0); |
202 | 202 | ||
203 | return 0; | 203 | return 0; |
204 | } | 204 | } |
diff --git a/drivers/clk/mxs/clk-imx28.c b/drivers/clk/mxs/clk-imx28.c index 4bfd1f4a8736..b2a3257d4f66 100644 --- a/drivers/clk/mxs/clk-imx28.c +++ b/drivers/clk/mxs/clk-imx28.c | |||
@@ -331,7 +331,7 @@ int __init mx28_clocks_init(void) | |||
331 | for (i = 0; i < ARRAY_SIZE(clks_init_on); i++) | 331 | for (i = 0; i < ARRAY_SIZE(clks_init_on); i++) |
332 | clk_prepare_enable(clks[clks_init_on[i]]); | 332 | clk_prepare_enable(clks[clks_init_on[i]]); |
333 | 333 | ||
334 | mxs_timer_init(NULL, MX28_INT_TIMER0); | 334 | mxs_timer_init(MX28_INT_TIMER0); |
335 | 335 | ||
336 | return 0; | 336 | return 0; |
337 | } | 337 | } |