Commit 5dd700e8 authored by Vladimir Zapolskiy's avatar Vladimir Zapolskiy Committed by Greg Kroah-Hartman

clk: imx31: fix rewritten input argument of mx31_clocks_init()

commit bae203d5 upstream.

Function mx31_clocks_init() is called during clock intialization on
legacy boards with reference clock frequency passed as its input
argument, this can be verified by examination of the function
declaration found in arch/arm/mach-imx/common.h and actual function
users which include that header file.

Inside CCF driver the function ignores its input argument, by chance
the used value in the function body is the same as input arguments on
side of all callers.

Fixes: d9388c84 ("clk: imx31: Do not call mxc_timer_init twice when booting with DT")
Signed-off-by: default avatarVladimir Zapolskiy <vz@mleia.com>
Reviewed-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: default avatarStephen Boyd <sboyd@codeaurora.org>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6c9f6284
...@@ -157,10 +157,8 @@ static void __init _mx31_clocks_init(unsigned long fref) ...@@ -157,10 +157,8 @@ static void __init _mx31_clocks_init(unsigned long fref)
} }
} }
int __init mx31_clocks_init(void) int __init mx31_clocks_init(unsigned long fref)
{ {
u32 fref = 26000000; /* default */
_mx31_clocks_init(fref); _mx31_clocks_init(fref);
clk_register_clkdev(clk[gpt_gate], "per", "imx-gpt.0"); clk_register_clkdev(clk[gpt_gate], "per", "imx-gpt.0");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment