hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/arch/c6x/platforms/timer64.c
....@@ -1,10 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) 2010, 2011 Texas Instruments Incorporated
34 * Contributed by: Mark Salter (msalter@redhat.com)
4
- *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License version 2 as
7
- * published by the Free Software Foundation.
85 */
96
107 #include <linux/clockchips.h>
....@@ -168,13 +165,6 @@
168165 return IRQ_HANDLED;
169166 }
170167
171
-static struct irqaction timer_iact = {
172
- .name = "timer",
173
- .flags = IRQF_TIMER,
174
- .handler = timer_interrupt,
175
- .dev_id = &t64_clockevent_device,
176
-};
177
-
178168 void __init timer64_init(void)
179169 {
180170 struct clock_event_device *cd = &t64_clockevent_device;
....@@ -241,7 +231,9 @@
241231 cd->cpumask = cpumask_of(smp_processor_id());
242232
243233 clockevents_register_device(cd);
244
- setup_irq(cd->irq, &timer_iact);
234
+ if (request_irq(cd->irq, timer_interrupt, IRQF_TIMER, "timer",
235
+ &t64_clockevent_device))
236
+ pr_err("Failed to request irq %d (timer)\n", cd->irq);
245237
246238 out:
247239 of_node_put(np);