@@ -98,7 +98,6 @@ struct imx_timer {
};
static struct clock_event_device clockevent_mxc;
-static enum clock_event_mode clockevent_mode = CLOCK_EVT_MODE_UNUSED;
static void gpt_irq_disable_v0_v1(struct imx_timer *tm)
{
@@ -226,6 +225,7 @@ static void mxc_set_mode(enum clock_event_mode mode,
{
unsigned long flags;
struct imx_timer *tm = container_of(evt, struct imx_timer, evt);
+ static enum clock_event_mode clockevent_mode = CLOCK_EVT_MODE_UNUSED;
/*
* The timer interrupt generation is disabled at least
The global variable "clockevent_mode" was moved into the function of mxc_set_mode. Signed-off-by: Shenwei Wang <shenwei.wang@freescale.com> --- arch/arm/mach-imx/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)