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

tip-bot2 for Gaosheng Cui posted 1 patch 2 months, 3 weeks ago
drivers/clocksource/asm9260_timer.c | 1 +
1 file changed, 1 insertion(+)
[tip: timers/core] clocksource/drivers/asm9260: Add missing clk_disable_unprepare in asm9260_timer_init
Posted by tip-bot2 for Gaosheng Cui 2 months, 3 weeks ago
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@huawei.com>
AuthorDate:    Sat, 03 Aug 2024 14:42:52 +08:00
Committer:     Daniel Lezcano <daniel.lezcano@linaro.org>
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@huawei.com>
Link: https://lore.kernel.org/r/20240803064253.331946-2-cuigaosheng1@huawei.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
---
 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;
 	}