.. | .. |
---|
181 | 181 | return IRQ_HANDLED; |
---|
182 | 182 | } |
---|
183 | 183 | |
---|
184 | | -static struct irqaction spear_timer_irq = { |
---|
185 | | - .name = "timer", |
---|
186 | | - .flags = IRQF_TIMER, |
---|
187 | | - .handler = spear_timer_interrupt |
---|
188 | | -}; |
---|
189 | | - |
---|
190 | 184 | static void __init spear_clockevent_init(int irq) |
---|
191 | 185 | { |
---|
192 | 186 | u32 tick_rate; |
---|
.. | .. |
---|
201 | 195 | |
---|
202 | 196 | clockevents_config_and_register(&clkevt, tick_rate, 3, 0xfff0); |
---|
203 | 197 | |
---|
204 | | - setup_irq(irq, &spear_timer_irq); |
---|
| 198 | + if (request_irq(irq, spear_timer_interrupt, IRQF_TIMER, "timer", NULL)) |
---|
| 199 | + pr_err("Failed to request irq %d (timer)\n", irq); |
---|
205 | 200 | } |
---|
206 | 201 | |
---|
207 | 202 | static const struct of_device_id timer_of_match[] __initconst = { |
---|