summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mxs/timer.c
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@linaro.org>2012-04-29 00:02:41 +0800
committerShawn Guo <shawn.guo@linaro.org>2012-05-09 00:02:43 +0800
commit50260924afd4b745bfb6e5f1caee381a1875fc31 (patch)
tree29c1908a66df3d3ea498e4941ee08d4c8af082bd /arch/arm/mach-mxs/timer.c
parent5da301a2056529cc5366f21d4325b96052d9cad1 (diff)
downloadblackbird-op-linux-50260924afd4b745bfb6e5f1caee381a1875fc31.tar.gz
blackbird-op-linux-50260924afd4b745bfb6e5f1caee381a1875fc31.zip
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>
Diffstat (limited to 'arch/arm/mach-mxs/timer.c')
-rw-r--r--arch/arm/mach-mxs/timer.c14
1 files changed, 7 insertions, 7 deletions
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)
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);
OpenPOWER on IntegriCloud