hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/arch/mips/kernel/i8253.c
....@@ -18,16 +18,13 @@
1818 return IRQ_HANDLED;
1919 }
2020
21
-static struct irqaction irq0 = {
22
- .handler = timer_interrupt,
23
- .flags = IRQF_NOBALANCING | IRQF_TIMER,
24
- .name = "timer"
25
-};
26
-
2721 void __init setup_pit_timer(void)
2822 {
23
+ unsigned long flags = IRQF_NOBALANCING | IRQF_TIMER;
24
+
2925 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");
3128 }
3229
3330 static int __init init_pit_clocksource(void)