aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clk/versatile
diff options
context:
space:
mode:
authorPrashant Gaikwad <pgaikwad@nvidia.com>2013-01-04 02:00:58 -0500
committerMike Turquette <mturquette@linaro.org>2013-01-24 14:13:03 -0500
commit8ae5ac5607b5baf7c1178998032ba752f61c7165 (patch)
tree872d14d7170aee195258eda5d6f0fbbf8838f386 /drivers/clk/versatile
parent10290030d7d31e387f602190ece2cdb3abfb3d71 (diff)
clk: vexpress: Use common of_clk_init() function
Use common of_clk_init() function for clock initialization. Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com> Tested-by: Pawel Moll <pawel.moll@arm.com> Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk/versatile')
-rw-r--r--drivers/clk/versatile/clk-vexpress-osc.c1
-rw-r--r--drivers/clk/versatile/clk-vexpress.c8
2 files changed, 2 insertions, 7 deletions
diff --git a/drivers/clk/versatile/clk-vexpress-osc.c b/drivers/clk/versatile/clk-vexpress-osc.c
index dcb6ae0a0425..256c8be74df8 100644
--- a/drivers/clk/versatile/clk-vexpress-osc.c
+++ b/drivers/clk/versatile/clk-vexpress-osc.c
@@ -144,3 +144,4 @@ error:
144 vexpress_config_func_put(osc->func); 144 vexpress_config_func_put(osc->func);
145 kfree(osc); 145 kfree(osc);
146} 146}
147CLK_OF_DECLARE(vexpress_soc, "arm,vexpress-osc", vexpress_osc_of_setup);
diff --git a/drivers/clk/versatile/clk-vexpress.c b/drivers/clk/versatile/clk-vexpress.c
index c742ac7c60bb..f889f2f07b37 100644
--- a/drivers/clk/versatile/clk-vexpress.c
+++ b/drivers/clk/versatile/clk-vexpress.c
@@ -99,19 +99,13 @@ struct clk *vexpress_sp810_of_get(struct of_phandle_args *clkspec, void *data)
99 return vexpress_sp810_timerclken[clkspec->args[0]]; 99 return vexpress_sp810_timerclken[clkspec->args[0]];
100} 100}
101 101
102static const __initconst struct of_device_id vexpress_fixed_clk_match[] = {
103 { .compatible = "fixed-clock", .data = of_fixed_clk_setup, },
104 { .compatible = "arm,vexpress-osc", .data = vexpress_osc_of_setup, },
105 {}
106};
107
108void __init vexpress_clk_of_init(void) 102void __init vexpress_clk_of_init(void)
109{ 103{
110 struct device_node *node; 104 struct device_node *node;
111 struct clk *clk; 105 struct clk *clk;
112 struct clk *refclk, *timclk; 106 struct clk *refclk, *timclk;
113 107
114 of_clk_init(vexpress_fixed_clk_match); 108 of_clk_init(NULL);
115 109
116 node = of_find_compatible_node(NULL, NULL, "arm,sp810"); 110 node = of_find_compatible_node(NULL, NULL, "arm,sp810");
117 vexpress_sp810_init(of_iomap(node, 0)); 111 vexpress_sp810_init(of_iomap(node, 0));