summaryrefslogtreecommitdiff
path: root/drivers/clocksource
diff options
context:
space:
mode:
authorGaosheng Cui <cuigaosheng1@huawei.com>2024-08-03 14:42:52 +0800
committerDaniel Lezcano <daniel.lezcano@linaro.org>2024-09-06 14:49:21 +0200
commit6cc11b65e5e0a6f1487274d1ad91088f7ac01d18 (patch)
tree0fbc4627f80fcdd0f8e72ae47ea12d429e641fe1 /drivers/clocksource
parentca140a0dc0a18acd4653b56db211fec9b2339986 (diff)
clocksource/drivers/asm9260: Add missing clk_disable_unprepare in asm9260_timer_init
Add the missing clk_disable_unprepare() before return in asm9260_timer_init(). Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com> Link: https://lore.kernel.org/r/20240803064253.331946-2-cuigaosheng1@huawei.com Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'drivers/clocksource')
-rw-r--r--drivers/clocksource/asm9260_timer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clocksource/asm9260_timer.c b/drivers/clocksource/asm9260_timer.c
index 5b39d3701fa3..8f97ab0b01ec 100644
--- a/drivers/clocksource/asm9260_timer.c
+++ b/drivers/clocksource/asm9260_timer.c
@@ -210,6 +210,7 @@ static int __init asm9260_timer_init(struct device_node *np)
DRIVER_NAME, &event_dev);
if (ret) {
pr_err("Failed to setup irq!\n");
+ clk_disable_unprepare(clk);
return ret;
}