Skip to contentSkip to conversation

clk: ti: dra7-atl-clock: Remove ti_clk_add_alias call

PATCH Superseded Peter Ujfalusi 1 participant 2 messages Sep 26, 2019 – Oct 2, 2019

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/clk/ti/clk-dra7-atl.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/clk/ti/clk-dra7-atl.c +0 -5
index a01ca9395179..c0e0ee974151 100644
@@ -207,11 +207,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;
Signature · 4 lines
Peter

Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
#1 lore raw
Quoted 2 lines · Peter Ujfalusi

ti_clk_register() calls it already so the driver should not create duplicated alias.

This patch will leave 'ret' as unused in of_dra7_atl_clock_setup(), I'll send v2 in a minute or so.

Quoted 12 lines
---
 drivers/clk/ti/clk-dra7-atl.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/clk/ti/clk-dra7-atl.c +0 -0
index a01ca9395179..c0e0ee974151 100644
@@ -207,11 +207,6 @@ static void __init of_dra7_atl_clock_setup(struct device_node *node)
 	clk = ti_clk_register(NULL, &clk_hw->hw, node->name);

drivers/clk/ti/clk-dra7-atl.c static void __init of_dra7_atl_clock_setup(struct device_node *node) · line 212

Quoted 10 lines
drivers/clk/ti/clk-dra7-atl.c +0 -5
 
 	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;

- Péter

Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki