aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mach-mxs/include/mach/common.h4
-rw-r--r--arch/arm/mach-mxs/timer.c14
-rw-r--r--drivers/clk/mxs/clk-imx23.c2
-rw-r--r--drivers/clk/mxs/clk-imx28.c2
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
14struct clk;
15
16extern const u32 *mxs_get_ocotp(void); 14extern const u32 *mxs_get_ocotp(void);
17extern int mxs_reset_block(void __iomem *); 15extern int mxs_reset_block(void __iomem *);
18extern void mxs_timer_init(struct clk *, int); 16extern void mxs_timer_init(int);
19extern void mxs_restart(char, const char *); 17extern void mxs_restart(char, const char *);
20extern int mxs_saif_clkmux_select(unsigned int clkmux); 18extern 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
247void __init mxs_timer_init(struct clk *timer_clk, int irq) 247void __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}