summaryrefslogtreecommitdiffstats
path: root/drivers/clk/at91
diff options
context:
space:
mode:
authorClaudiu Beznea <claudiu.beznea@microchip.com>2019-06-27 18:53:45 +0300
committerStephen Boyd <sboyd@kernel.org>2019-06-27 11:18:21 -0700
commitecbcc2aa655744363647b91dee09096918e41eaf (patch)
tree0e27bd4fc3ef1dc45b9c99c9dd108d9b303e2007 /drivers/clk/at91
parentd09e6ca1381fee498f3fd0431800617daffb8fd4 (diff)
downloadlinux-ecbcc2aa655744363647b91dee09096918e41eaf.tar.bz2
clk: at91: sckc: use dedicated functions to unregister clock
Use at91 specific functions to free all resources in case of error. Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> Reviewed-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/at91')
-rw-r--r--drivers/clk/at91/sckc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/at91/sckc.c b/drivers/clk/at91/sckc.c
index e216bb613562..c0451c9cf334 100644
--- a/drivers/clk/at91/sckc.c
+++ b/drivers/clk/at91/sckc.c
@@ -509,13 +509,13 @@ static void __init of_sam9x60_sckc_setup(struct device_node *np)
return;
unregister_td_slck:
- clk_hw_unregister(clk_data->hws[1]);
+ at91_clk_unregister_sam9x5_slow(clk_data->hws[1]);
unregister_md_slck:
clk_hw_unregister(clk_data->hws[0]);
clk_data_free:
kfree(clk_data);
unregister_slow_osc:
- clk_hw_unregister(slow_osc);
+ at91_clk_unregister_slow_osc(slow_osc);
unregister_slow_rc:
clk_hw_unregister(slow_rc);
}