clocksource: rockchip: remove unnecessary clear irq before request_irq
authorHuang, Tao <huangtao@rock-chips.com>
Wed, 18 May 2016 09:28:07 +0000 (17:28 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Thu, 19 May 2016 10:29:58 +0000 (18:29 +0800)
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 <huangtao@rock-chips.com>
drivers/clocksource/rockchip_timer.c

index b991b288c8032740f4eb0a0a4a30d056fcbb6694..b93fed6533c6f00683f91f45e36e4fdf1e7e0495 100644 (file)
@@ -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);