aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2019-10-02 11:34:36 +0300
committerTero Kristo <t-kristo@ti.com>2019-10-23 12:14:06 +0300
commit1c7630688a0fa0738688f987c48b6be412e200dd (patch)
treeb959a1b94f3454de702552263d8f05cf01bfb4a2
parentc016088a6fdf1af34d8a9606b7f1f949b476a345 (diff)
downloadlinux-for-5.4-rc-ti-clk-fixes.tar.gz
clk: ti: dra7-atl-clock: Remove ti_clk_add_alias callti-clk-fixes-for-5.4for-5.4-rc-ti-clk-fixes
ti_clk_register() calls it already so the driver should not create duplicated alias. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by: Tero Kristo <t-kristo@ti.com>
-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 a01ca9395179a7..f65e16c4f3c4b8 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)
struct clk_init_data init = { NULL };
const char **parent_names = NULL;
struct clk *clk;
- int ret;
clk_hw = kzalloc(sizeof(*clk_hw), GFP_KERNEL);
if (!clk_hw) {
@@ -207,11 +206,6 @@ static void __init of_dra7_atl_clock_setup(struct device_node *node)
clk = ti_clk_register(NULL, &clk_hw->hw, node->name);
if (!IS_ERR(clk)) {
- ret = ti_clk_add_alias(NULL, clk, node->name);
- if (ret) {
- clk_unregister(clk);
- goto cleanup;
- }
of_clk_add_provider(node, of_clk_src_simple_get, clk);
kfree(parent_names);
return;