diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2013-04-02 13:02:36 +0200 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2013-04-03 12:55:31 -0700 |
commit | f640c0fad698c0e4b07e05373681d3681125d6af (patch) | |
tree | d5806255d66f425eba40b29362e648aa241237b2 /drivers/clk/mvebu/clk-cpu.c | |
parent | 3566d40c1a4617461b38c82059bdc41d622faa8b (diff) | |
download | linux-f640c0fad698c0e4b07e05373681d3681125d6af.tar.bz2 |
clk: mvebu: Use common of_clk_init() function
The use common of_clk_init() function simplifies the clock initialization
and adds handling of the DT "fixed-clock".
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
[mturquette@linaro.org: fixed $SUBJECT to reflect correct file path]
Diffstat (limited to 'drivers/clk/mvebu/clk-cpu.c')
-rw-r--r-- | drivers/clk/mvebu/clk-cpu.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/drivers/clk/mvebu/clk-cpu.c b/drivers/clk/mvebu/clk-cpu.c index 9dd2551a0a41..b0fbc0715491 100644 --- a/drivers/clk/mvebu/clk-cpu.c +++ b/drivers/clk/mvebu/clk-cpu.c @@ -16,7 +16,6 @@ #include <linux/io.h> #include <linux/of.h> #include <linux/delay.h> -#include "clk-cpu.h" #define SYS_CTRL_CLK_DIVIDER_CTRL_OFFSET 0x0 #define SYS_CTRL_CLK_DIVIDER_VALUE_OFFSET 0xC @@ -173,17 +172,5 @@ clks_out: kfree(cpuclk); } -static const __initconst struct of_device_id clk_cpu_match[] = { - { - .compatible = "marvell,armada-xp-cpu-clock", - .data = of_cpu_clk_setup, - }, - { - /* sentinel */ - }, -}; - -void __init mvebu_cpu_clk_init(void) -{ - of_clk_init(clk_cpu_match); -} +CLK_OF_DECLARE(armada_xp_cpu_clock, "marvell,armada-xp-cpu-clock", + of_cpu_clk_setup); |