hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
kernel/arch/mips/sni/time.c
....@@ -55,12 +55,6 @@
5555 return IRQ_HANDLED;
5656 }
5757
58
-static struct irqaction a20r_irqaction = {
59
- .handler = a20r_interrupt,
60
- .flags = IRQF_PERCPU | IRQF_TIMER,
61
- .name = "a20r-timer",
62
-};
63
-
6458 /*
6559 * a20r platform uses 2 counters to divide the input frequency.
6660 * Counter 2 output is connected to Counter 0 & 1 input.
....@@ -68,13 +62,13 @@
6862 static void __init sni_a20r_timer_setup(void)
6963 {
7064 struct clock_event_device *cd = &a20r_clockevent_device;
71
- struct irqaction *action = &a20r_irqaction;
7265 unsigned int cpu = smp_processor_id();
7366
7467 cd->cpumask = cpumask_of(cpu);
7568 clockevents_register_device(cd);
76
- action->dev_id = cd;
77
- setup_irq(SNI_A20R_IRQ_TIMER, &a20r_irqaction);
69
+ if (request_irq(SNI_A20R_IRQ_TIMER, a20r_interrupt,
70
+ IRQF_PERCPU | IRQF_TIMER, "a20r-timer", cd))
71
+ pr_err("Failed to register a20r-timer interrupt\n");
7872 }
7973
8074 #define SNI_8254_TICK_RATE 1193182UL