.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) 2010, 2011 Texas Instruments Incorporated |
---|
3 | 4 | * Contributed by: Mark Salter (msalter@redhat.com) |
---|
4 | | - * |
---|
5 | | - * This program is free software; you can redistribute it and/or modify |
---|
6 | | - * it under the terms of the GNU General Public License version 2 as |
---|
7 | | - * published by the Free Software Foundation. |
---|
8 | 5 | */ |
---|
9 | 6 | |
---|
10 | 7 | #include <linux/clockchips.h> |
---|
.. | .. |
---|
168 | 165 | return IRQ_HANDLED; |
---|
169 | 166 | } |
---|
170 | 167 | |
---|
171 | | -static struct irqaction timer_iact = { |
---|
172 | | - .name = "timer", |
---|
173 | | - .flags = IRQF_TIMER, |
---|
174 | | - .handler = timer_interrupt, |
---|
175 | | - .dev_id = &t64_clockevent_device, |
---|
176 | | -}; |
---|
177 | | - |
---|
178 | 168 | void __init timer64_init(void) |
---|
179 | 169 | { |
---|
180 | 170 | struct clock_event_device *cd = &t64_clockevent_device; |
---|
.. | .. |
---|
241 | 231 | cd->cpumask = cpumask_of(smp_processor_id()); |
---|
242 | 232 | |
---|
243 | 233 | clockevents_register_device(cd); |
---|
244 | | - setup_irq(cd->irq, &timer_iact); |
---|
| 234 | + if (request_irq(cd->irq, timer_interrupt, IRQF_TIMER, "timer", |
---|
| 235 | + &t64_clockevent_device)) |
---|
| 236 | + pr_err("Failed to request irq %d (timer)\n", cd->irq); |
---|
245 | 237 | |
---|
246 | 238 | out: |
---|
247 | 239 | of_node_put(np); |
---|