forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/arch/mips/kernel/cevt-txx9.c
....@@ -174,13 +174,6 @@
174174 return IRQ_HANDLED;
175175 }
176176
177
-static struct irqaction txx9tmr_irq = {
178
- .handler = txx9tmr_interrupt,
179
- .flags = IRQF_PERCPU | IRQF_TIMER,
180
- .name = "txx9tmr",
181
- .dev_id = &txx9_clock_event_device,
182
-};
183
-
184177 void __init txx9_clockevent_init(unsigned long baseaddr, int irq,
185178 unsigned int imbusclk)
186179 {
....@@ -202,7 +195,9 @@
202195 cd->irq = irq;
203196 cd->cpumask = cpumask_of(0),
204197 clockevents_register_device(cd);
205
- setup_irq(irq, &txx9tmr_irq);
198
+ if (request_irq(irq, txx9tmr_interrupt, IRQF_PERCPU | IRQF_TIMER,
199
+ "txx9tmr", &txx9_clock_event_device))
200
+ pr_err("Failed to request irq %d (txx9tmr)\n", irq);
206201 printk(KERN_INFO "TXx9: clockevent device at 0x%lx, irq %d\n",
207202 baseaddr, irq);
208203 }