File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -72,13 +72,6 @@ static struct clocksource cksrc_puv3_oscr = {
72
72
.flags = CLOCK_SOURCE_IS_CONTINUOUS ,
73
73
};
74
74
75
- static struct irqaction puv3_timer_irq = {
76
- .name = "ost0" ,
77
- .flags = IRQF_TIMER | IRQF_IRQPOLL ,
78
- .handler = puv3_ost0_interrupt ,
79
- .dev_id = & ckevt_puv3_osmr0 ,
80
- };
81
-
82
75
void __init time_init (void )
83
76
{
84
77
writel (0 , OST_OIER ); /* disable any timer interrupts */
@@ -94,7 +87,9 @@ void __init time_init(void)
94
87
ckevt_puv3_osmr0 .min_delta_ticks = MIN_OSCR_DELTA * 2 ;
95
88
ckevt_puv3_osmr0 .cpumask = cpumask_of (0 );
96
89
97
- setup_irq (IRQ_TIMER0 , & puv3_timer_irq );
90
+ if (request_irq (IRQ_TIMER0 , puv3_ost0_interrupt ,
91
+ IRQF_TIMER | IRQF_IRQPOLL , "ost0" , & ckevt_puv3_osmr0 ))
92
+ pr_err ("Failed to register ost0 interrupt\n" );
98
93
99
94
clocksource_register_hz (& cksrc_puv3_oscr , CLOCK_TICK_RATE );
100
95
clockevents_register_device (& ckevt_puv3_osmr0 );
You can’t perform that action at this time.
0 commit comments