summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mxs/timer.c
diff options
context:
space:
mode:
authorShawn Guo2012-04-28 18:02:41 +0200
committerShawn Guo2012-05-08 18:02:43 +0200
commit50260924afd4b745bfb6e5f1caee381a1875fc31 (patch)
tree29c1908a66df3d3ea498e4941ee08d4c8af082bd /arch/arm/mach-mxs/timer.c
parentARM: mxs: remove old clock support (diff)
downloadkernel-qcow2-linux-50260924afd4b745bfb6e5f1caee381a1875fc31.tar.gz
kernel-qcow2-linux-50260924afd4b745bfb6e5f1caee381a1875fc31.tar.xz
kernel-qcow2-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);