hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/clocksource/timer-u300.c
....@@ -1,6 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) 2007-2009 ST-Ericsson AB
3
- * License terms: GNU General Public License (GPL) version 2
44 * Timer COH 901 328, runs the OS timer interrupt.
55 * Author: Linus Walleij <linus.walleij@stericsson.com>
66 */
....@@ -330,12 +330,6 @@
330330 return IRQ_HANDLED;
331331 }
332332
333
-static struct irqaction u300_timer_irq = {
334
- .name = "U300 Timer Tick",
335
- .flags = IRQF_TIMER | IRQF_IRQPOLL,
336
- .handler = u300_timer_interrupt,
337
-};
338
-
339333 /*
340334 * Override the global weak sched_clock symbol with this
341335 * local implementation which uses the clocksource to get some
....@@ -420,7 +414,8 @@
420414 u300_timer_base + U300_TIMER_APP_RGPT1);
421415
422416 /* Set up the IRQ handler */
423
- ret = setup_irq(irq, &u300_timer_irq);
417
+ ret = request_irq(irq, u300_timer_interrupt,
418
+ IRQF_TIMER | IRQF_IRQPOLL, "U300 Timer Tick", NULL);
424419 if (ret)
425420 return ret;
426421