[PATCH -next 1/2] clocksource/drivers/asm9260: Add missing clk_disable_unprepare in asm9260_timer_init
Gaosheng Cui
cuigaosheng1 at huawei.com
Fri Aug 2 23:42:52 PDT 2024
Add the missing clk_disable_unprepare() before return in
asm9260_timer_init().
Signed-off-by: Gaosheng Cui <cuigaosheng1 at huawei.com>
---
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 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;
}
--
2.25.1
More information about the linux-arm-kernel
mailing list