diff options
author | Robert Jarzmik <robert.jarzmik@free.fr> | 2014-10-06 19:07:59 -0400 |
---|---|---|
committer | Michael Turquette <mturquette@linaro.org> | 2014-11-17 14:27:45 -0500 |
commit | 6f8a444aa6270e8d1aa4223ed856189108e1d401 (patch) | |
tree | 1942979e972fef6032347f7503dc00815033f896 /drivers/clk/pxa/clk-pxa27x.c | |
parent | 14dd5b01ae86760142157a5259b7f798eb840697 (diff) |
clk: pxa: keep clocks initialization separated per variant
Have each pxa variant (pxa25x, pxa27x, pxa3xx) have its own device-tree
clock initializing function, to be able to register its own specific
core clocks.
Apply that change specifically to pxa27x.
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Michael Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk/pxa/clk-pxa27x.c')
-rw-r--r-- | drivers/clk/pxa/clk-pxa27x.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/clk/pxa/clk-pxa27x.c b/drivers/clk/pxa/clk-pxa27x.c index 24c1d2454c75..bb8dfbc747ba 100644 --- a/drivers/clk/pxa/clk-pxa27x.c +++ b/drivers/clk/pxa/clk-pxa27x.c | |||
@@ -368,3 +368,10 @@ static int __init pxa27x_clocks_init(void) | |||
368 | return clk_pxa_cken_init(pxa27x_clocks, ARRAY_SIZE(pxa27x_clocks)); | 368 | return clk_pxa_cken_init(pxa27x_clocks, ARRAY_SIZE(pxa27x_clocks)); |
369 | } | 369 | } |
370 | postcore_initcall(pxa27x_clocks_init); | 370 | postcore_initcall(pxa27x_clocks_init); |
371 | |||
372 | static void __init pxa27x_dt_clocks_init(struct device_node *np) | ||
373 | { | ||
374 | pxa27x_clocks_init(); | ||
375 | clk_pxa_dt_common_init(np); | ||
376 | } | ||
377 | CLK_OF_DECLARE(pxa_clks, "marvell,pxa270-clocks", pxa27x_dt_clocks_init); | ||