Commit 8ae5ac56 authored by Prashant Gaikwad's avatar Prashant Gaikwad Committed by Mike Turquette

clk: vexpress: Use common of_clk_init() function

Use common of_clk_init() function for clock initialization.
Signed-off-by: default avatarPrashant Gaikwad <pgaikwad@nvidia.com>
Tested-by: default avatarPawel Moll <pawel.moll@arm.com>
Signed-off-by: default avatarMike Turquette <mturquette@linaro.org>
parent 10290030
......@@ -144,3 +144,4 @@ void __init vexpress_osc_of_setup(struct device_node *node)
vexpress_config_func_put(osc->func);
kfree(osc);
}
CLK_OF_DECLARE(vexpress_soc, "arm,vexpress-osc", vexpress_osc_of_setup);
......@@ -99,19 +99,13 @@ struct clk *vexpress_sp810_of_get(struct of_phandle_args *clkspec, void *data)
return vexpress_sp810_timerclken[clkspec->args[0]];
}
static const __initconst struct of_device_id vexpress_fixed_clk_match[] = {
{ .compatible = "fixed-clock", .data = of_fixed_clk_setup, },
{ .compatible = "arm,vexpress-osc", .data = vexpress_osc_of_setup, },
{}
};
void __init vexpress_clk_of_init(void)
{
struct device_node *node;
struct clk *clk;
struct clk *refclk, *timclk;
of_clk_init(vexpress_fixed_clk_match);
of_clk_init(NULL);
node = of_find_compatible_node(NULL, NULL, "arm,sp810");
vexpress_sp810_init(of_iomap(node, 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