Skip to content

Commit 6cc11b6

Browse files
gscuidlezcano
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Daniel Lezcano <[email protected]>
1 parent ca140a0 commit 6cc11b6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/clocksource/asm9260_timer.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ static int __init asm9260_timer_init(struct device_node *np)
210210
DRIVER_NAME, &event_dev);
211211
if (ret) {
212212
pr_err("Failed to setup irq!\n");
213+
clk_disable_unprepare(clk);
213214
return ret;
214215
}
215216

0 commit comments

Comments
 (0)