summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2019-10-02 04:34:36 -0400
committerStephen Boyd <sboyd@kernel.org>2019-11-04 12:56:11 -0500
commit9982b0f69b49931b652d35f86f519be2ccfc7027 (patch)
tree60a547c4701bb04de9061563f79c6f4b329b6f01
parent427400fc5c1988245827bacb0dfba0214f153a2f (diff)
clk: ti: dra7-atl-clock: Remove ti_clk_add_alias call
ti_clk_register() calls it already so the driver should not create duplicated alias. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Link: https://lkml.kernel.org/r/20191002083436.10194-1-peter.ujfalusi@ti.com Signed-off-by: Stephen Boyd <sboyd@kernel.org>
-rw-r--r--drivers/clk/ti/clk-dra7-atl.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/clk/ti/clk-dra7-atl.c b/drivers/clk/ti/clk-dra7-atl.c
index a01ca9395179..f65e16c4f3c4 100644
--- a/drivers/clk/ti/clk-dra7-atl.c
+++ b/drivers/clk/ti/clk-dra7-atl.c
@@ -174,7 +174,6 @@ static void __init of_dra7_atl_clock_setup(struct device_node *node)
174 struct clk_init_data init = { NULL }; 174 struct clk_init_data init = { NULL };
175 const char **parent_names = NULL; 175 const char **parent_names = NULL;
176 struct clk *clk; 176 struct clk *clk;
177 int ret;
178 177
179 clk_hw = kzalloc(sizeof(*clk_hw), GFP_KERNEL); 178 clk_hw = kzalloc(sizeof(*clk_hw), GFP_KERNEL);
180 if (!clk_hw) { 179 if (!clk_hw) {
@@ -207,11 +206,6 @@ static void __init of_dra7_atl_clock_setup(struct device_node *node)
207 clk = ti_clk_register(NULL, &clk_hw->hw, node->name); 206 clk = ti_clk_register(NULL, &clk_hw->hw, node->name);
208 207
209 if (!IS_ERR(clk)) { 208 if (!IS_ERR(clk)) {
210 ret = ti_clk_add_alias(NULL, clk, node->name);
211 if (ret) {
212 clk_unregister(clk);
213 goto cleanup;
214 }
215 of_clk_add_provider(node, of_clk_src_simple_get, clk); 209 of_clk_add_provider(node, of_clk_src_simple_get, clk);
216 kfree(parent_names); 210 kfree(parent_names);
217 return; 211 return;