.. | .. |
---|
18 | 18 | return IRQ_HANDLED; |
---|
19 | 19 | } |
---|
20 | 20 | |
---|
21 | | -static struct irqaction irq0 = { |
---|
22 | | - .handler = timer_interrupt, |
---|
23 | | - .flags = IRQF_NOBALANCING | IRQF_TIMER, |
---|
24 | | - .name = "timer" |
---|
25 | | -}; |
---|
26 | | - |
---|
27 | 21 | void __init setup_pit_timer(void) |
---|
28 | 22 | { |
---|
| 23 | + unsigned long flags = IRQF_NOBALANCING | IRQF_TIMER; |
---|
| 24 | + |
---|
29 | 25 | clockevent_i8253_init(true); |
---|
30 | | - setup_irq(0, &irq0); |
---|
| 26 | + if (request_irq(0, timer_interrupt, flags, "timer", NULL)) |
---|
| 27 | + pr_err("Failed to request irq 0 (timer)\n"); |
---|
31 | 28 | } |
---|
32 | 29 | |
---|
33 | 30 | static int __init init_pit_clocksource(void) |
---|