Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eed9fb9d authored by Boris Brezillon's avatar Boris Brezillon Committed by Alexandre Belloni
Browse files

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: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
parent 216ab8f1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -208,7 +208,7 @@ static int __init setup_clkevents(struct atmel_tc *tc, int clk32k_divisor_idx)

	ret = request_irq(irq, ch2_irq, IRQF_TIMER, "tc_clkevt", &clkevt);
	if (ret) {
		clk_disable_unprepare(t2_clk);
		clk_unprepare(t2_clk);
		return ret;
	}