| .. | .. |
|---|
| 174 | 174 | return IRQ_HANDLED; |
|---|
| 175 | 175 | } |
|---|
| 176 | 176 | |
|---|
| 177 | | -static struct irqaction txx9tmr_irq = { |
|---|
| 178 | | - .handler = txx9tmr_interrupt, |
|---|
| 179 | | - .flags = IRQF_PERCPU | IRQF_TIMER, |
|---|
| 180 | | - .name = "txx9tmr", |
|---|
| 181 | | - .dev_id = &txx9_clock_event_device, |
|---|
| 182 | | -}; |
|---|
| 183 | | - |
|---|
| 184 | 177 | void __init txx9_clockevent_init(unsigned long baseaddr, int irq, |
|---|
| 185 | 178 | unsigned int imbusclk) |
|---|
| 186 | 179 | { |
|---|
| .. | .. |
|---|
| 202 | 195 | cd->irq = irq; |
|---|
| 203 | 196 | cd->cpumask = cpumask_of(0), |
|---|
| 204 | 197 | clockevents_register_device(cd); |
|---|
| 205 | | - setup_irq(irq, &txx9tmr_irq); |
|---|
| 198 | + if (request_irq(irq, txx9tmr_interrupt, IRQF_PERCPU | IRQF_TIMER, |
|---|
| 199 | + "txx9tmr", &txx9_clock_event_device)) |
|---|
| 200 | + pr_err("Failed to request irq %d (txx9tmr)\n", irq); |
|---|
| 206 | 201 | printk(KERN_INFO "TXx9: clockevent device at 0x%lx, irq %d\n", |
|---|
| 207 | 202 | baseaddr, irq); |
|---|
| 208 | 203 | } |
|---|