clockevents: sun5i: Fix setup_irq init sequence
authorYongbae Park <yongbae2@gmail.com>
Tue, 3 Mar 2015 04:05:48 +0000 (13:05 +0900)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 5 Mar 2015 14:01:37 +0000 (15:01 +0100)
commit1096be084ac59927158ce80ff1d31c33eed0e565
tree2dace8accf2d326c7d1b0e08231fe3a27403a9ec
parent7b8f10da3bf1056546133c9f54f49ce389fd95ab
clockevents: sun5i: Fix setup_irq init sequence

The interrupt is enabled before the handler is set. Even this bug
did not appear, it is potentially dangerous as it can lead to a
NULL pointer dereference.

Fix the error by enabling the interrupt after
clockevents_config_and_register() is called.

Cc: stable@vger.kernel.org
Signed-off-by: Yongbae Park <yongbae2@gmail.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/timer-sun5i.c