From c380160aeae8b786868bd8483b9c1c9f22d15b61 Mon Sep 17 00:00:00 2001 From: "Huang, Tao" Date: Wed, 18 May 2016 17:28:07 +0800 Subject: [PATCH] clocksource: rockchip: remove unnecessary clear irq before request_irq rk_timer_interrupt_clear and rk_timer_disable is unnecessary before request_irq. Timer should keep disabled before booting Linux. Change-Id: I6de401ad156d620ac676e80de89ffd0bdaab3a36 Signed-off-by: Huang, Tao --- drivers/clocksource/rockchip_timer.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/clocksource/rockchip_timer.c b/drivers/clocksource/rockchip_timer.c index b991b288c803..b93fed6533c6 100644 --- a/drivers/clocksource/rockchip_timer.c +++ b/drivers/clocksource/rockchip_timer.c @@ -158,9 +158,6 @@ static void __init rk_timer_init(struct device_node *np) ce->cpumask = cpumask_of(0); ce->rating = 250; - rk_timer_interrupt_clear(ce); - rk_timer_disable(ce); - ret = request_irq(irq, rk_timer_interrupt, IRQF_TIMER, TIMER_NAME, ce); if (ret) { pr_err("Failed to initialize '%s': %d\n", TIMER_NAME, ret); -- 2.34.1