diff options
-rw-r--r-- | drivers/clk/ti/clk-dra7-atl.c | 6 |
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; |