.. | .. |
---|
117 | 117 | return IRQ_HANDLED; |
---|
118 | 118 | } |
---|
119 | 119 | |
---|
120 | | -static struct irqaction mxs_timer_irq = { |
---|
121 | | - .name = "MXS Timer Tick", |
---|
122 | | - .dev_id = &mxs_clockevent_device, |
---|
123 | | - .flags = IRQF_TIMER | IRQF_IRQPOLL, |
---|
124 | | - .handler = mxs_timer_interrupt, |
---|
125 | | -}; |
---|
126 | | - |
---|
127 | 120 | static void mxs_irq_clear(char *state) |
---|
128 | 121 | { |
---|
129 | 122 | /* Disable interrupt in timer module */ |
---|
.. | .. |
---|
274 | 267 | if (irq <= 0) |
---|
275 | 268 | return -EINVAL; |
---|
276 | 269 | |
---|
277 | | - return setup_irq(irq, &mxs_timer_irq); |
---|
| 270 | + return request_irq(irq, mxs_timer_interrupt, IRQF_TIMER | IRQF_IRQPOLL, |
---|
| 271 | + "MXS Timer Tick", &mxs_clockevent_device); |
---|
278 | 272 | } |
---|
279 | 273 | TIMER_OF_DECLARE(mxs, "fsl,timrot", mxs_timer_init); |
---|