diff mbox series

[-next,1/2] clocksource/drivers/asm9260: Add missing clk_disable_unprepare in asm9260_timer_init

Message ID 20240803064253.331946-2-cuigaosheng1@huawei.com (mailing list archive)
State New, archived
Headers show
Series Add missing clk_disable_unprepare | expand

Commit Message

cuigaosheng Aug. 3, 2024, 6:42 a.m. UTC
Add the missing clk_disable_unprepare() before return in
asm9260_timer_init().

Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
---
 drivers/clocksource/asm9260_timer.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Daniel Lezcano Sept. 2, 2024, 9:29 a.m. UTC | #1
On 03/08/2024 08:42, Gaosheng Cui wrote:
> Add the missing clk_disable_unprepare() before return in
> asm9260_timer_init().
> 
> Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
> ---

Applied, thanks
diff mbox series

Patch

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;
 	}