Message ID | 20240803064253.331946-2-cuigaosheng1@huawei.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Add missing clk_disable_unprepare | expand |
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 --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; }
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(+)