aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clk/ti/apll.c
diff options
context:
space:
mode:
authorTero Kristo <t-kristo@ti.com>2019-01-15 11:15:15 +0200
committerTero Kristo <t-kristo@ti.com>2019-02-15 16:46:22 +0200
commitead478250b950f1f082d4cb57bed3adeacfe53c3 (patch)
tree5649053515fe4864839d2d3ea1baed0fbe14a7cd /drivers/clk/ti/apll.c
parentclk: ti: remove usage of CLK_IS_BASIC (diff)
downloadlinux-dev-ead478250b950f1f082d4cb57bed3adeacfe53c3.tar.xz
linux-dev-ead478250b950f1f082d4cb57bed3adeacfe53c3.zip
clk: ti: generalize the init sequence of clk_hw_omap clocks
Add a generic API for initializing clocks of clk_hw_omap type clocks, and convert the whole TI clock driver suite to use this for registering the clocks. Also, get rid of the now redundant API for adding the clocks to the OMAP HW clocks list; instead this is used directly from the register API. Signed-off-by: Tero Kristo <t-kristo@ti.com> Acked-by: Tony Lindgren <tony@atomide.com> Tested-by: Keerthy <j-keerthy@ti.com>
Diffstat (limited to 'drivers/clk/ti/apll.c')
-rw-r--r--drivers/clk/ti/apll.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/ti/apll.c b/drivers/clk/ti/apll.c
index 222f68bc3f2a..015a657d3382 100644
--- a/drivers/clk/ti/apll.c
+++ b/drivers/clk/ti/apll.c
@@ -165,7 +165,7 @@ static void __init omap_clk_register_apll(void *user,
ad->clk_bypass = __clk_get_hw(clk);
- clk = ti_clk_register(NULL, &clk_hw->hw, node->name);
+ clk = ti_clk_register_omap_hw(NULL, &clk_hw->hw, node->name);
if (!IS_ERR(clk)) {
of_clk_add_provider(node, of_clk_src_simple_get, clk);
kfree(clk_hw->hw.init->parent_names);
@@ -402,7 +402,7 @@ static void __init of_omap2_apll_setup(struct device_node *node)
if (ret)
goto cleanup;
- clk = clk_register(NULL, &clk_hw->hw);
+ clk = ti_clk_register_omap_hw(NULL, &clk_hw->hw, node->name);
if (!IS_ERR(clk)) {
of_clk_add_provider(node, of_clk_src_simple_get, clk);
kfree(init);