Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clocksource: tcb_clksrc: fix setup_clkevents error path

t2_clk is already disabled before request_irq(), it must not be disabled
again.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>

authored by

Boris Brezillon and committed by
Alexandre Belloni
eed9fb9d 216ab8f1

+1 -1
+1 -1
drivers/clocksource/tcb_clksrc.c
··· 208 208 209 209 ret = request_irq(irq, ch2_irq, IRQF_TIMER, "tc_clkevt", &clkevt); 210 210 if (ret) { 211 - clk_disable_unprepare(t2_clk); 211 + clk_unprepare(t2_clk); 212 212 return ret; 213 213 } 214 214