[tip: timers/core] clocksource/drivers/asm9260: Add missing clk_disable_unprepare in asm9260_timer_init

From: tip-bot2 for Gaosheng Cui
Date: Fri Sep 06 2024 - 14:57:19 EST


The following commit has been merged into the timers/core branch of tip:

Commit-ID: 6cc11b65e5e0a6f1487274d1ad91088f7ac01d18
Gitweb: https://git.kernel.org/tip/6cc11b65e5e0a6f1487274d1ad91088f7ac01d18
Author: Gaosheng Cui <cuigaosheng1@xxxxxxxxxx>
AuthorDate: Sat, 03 Aug 2024 14:42:52 +08:00
Committer: Daniel Lezcano <daniel.lezcano@xxxxxxxxxx>
CommitterDate: Fri, 06 Sep 2024 14:49:21 +02:00

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@xxxxxxxxxx>
Link: https://lore.kernel.org/r/20240803064253.331946-2-cuigaosheng1@xxxxxxxxxx
Signed-off-by: Daniel Lezcano <daniel.lezcano@xxxxxxxxxx>
---
drivers/clocksource/asm9260_timer.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/clocksource/asm9260_timer.c b/drivers/clocksource/asm9260_timer.c
index 5b39d37..8f97ab0 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;
}