.. | .. |
---|
101 | 101 | return IRQ_HANDLED; |
---|
102 | 102 | } |
---|
103 | 103 | |
---|
104 | | -static struct irqaction footbridge_timer_irq = { |
---|
105 | | - .name = "dc21285_timer1", |
---|
106 | | - .handler = timer1_interrupt, |
---|
107 | | - .flags = IRQF_TIMER | IRQF_IRQPOLL, |
---|
108 | | - .dev_id = &ckevt_dc21285, |
---|
109 | | -}; |
---|
110 | | - |
---|
111 | 104 | /* |
---|
112 | 105 | * Set up timer interrupt. |
---|
113 | 106 | */ |
---|
.. | .. |
---|
118 | 111 | |
---|
119 | 112 | clocksource_register_hz(&cksrc_dc21285, rate); |
---|
120 | 113 | |
---|
121 | | - setup_irq(ce->irq, &footbridge_timer_irq); |
---|
| 114 | + if (request_irq(ce->irq, timer1_interrupt, IRQF_TIMER | IRQF_IRQPOLL, |
---|
| 115 | + "dc21285_timer1", &ckevt_dc21285)) |
---|
| 116 | + pr_err("Failed to request irq %d (dc21285_timer1)", ce->irq); |
---|
122 | 117 | |
---|
123 | 118 | ce->cpumask = cpumask_of(smp_processor_id()); |
---|
124 | 119 | clockevents_config_and_register(ce, rate, 0x4, 0xffffff); |
---|