hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/arch/m68k/68000/timers.c
....@@ -22,7 +22,6 @@
2222 #include <linux/clocksource.h>
2323 #include <linux/rtc.h>
2424 #include <asm/setup.h>
25
-#include <asm/pgtable.h>
2625 #include <asm/machdep.h>
2726 #include <asm/MC68VZ328.h>
2827
....@@ -68,14 +67,6 @@
6867
6968 /***************************************************************************/
7069
71
-static struct irqaction m68328_timer_irq = {
72
- .name = "timer",
73
- .flags = IRQF_TIMER,
74
- .handler = hw_tick,
75
-};
76
-
77
-/***************************************************************************/
78
-
7970 static u64 m68328_read_clk(struct clocksource *cs)
8071 {
8172 unsigned long flags;
....@@ -102,11 +93,17 @@
10293
10394 void hw_timer_init(irq_handler_t handler)
10495 {
96
+ int ret;
97
+
10598 /* disable timer 1 */
10699 TCTL = 0;
107100
108101 /* set ISR */
109
- setup_irq(TMR_IRQ_NUM, &m68328_timer_irq);
102
+ ret = request_irq(TMR_IRQ_NUM, hw_tick, IRQF_TIMER, "timer", NULL);
103
+ if (ret) {
104
+ pr_err("Failed to request irq %d (timer): %pe\n", TMR_IRQ_NUM,
105
+ ERR_PTR(ret));
106
+ }
110107
111108 /* Restart mode, Enable int, Set clock source */
112109 TCTL = TCTL_OM | TCTL_IRQEN | CLOCK_SOURCE;