| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0+ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright 2012 Simon Arlott |
|---|
| 3 | | - * |
|---|
| 4 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 5 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 6 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 7 | | - * (at your option) any later version. |
|---|
| 8 | | - * |
|---|
| 9 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 10 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 11 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 12 | | - * GNU General Public License for more details. |
|---|
| 13 | | - * |
|---|
| 14 | | - * You should have received a copy of the GNU General Public License |
|---|
| 15 | | - * along with this program; if not, write to the Free Software |
|---|
| 16 | | - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|---|
| 17 | 4 | */ |
|---|
| 18 | 5 | |
|---|
| 19 | 6 | #include <linux/bitops.h> |
|---|
| .. | .. |
|---|
| 44 | 31 | void __iomem *compare; |
|---|
| 45 | 32 | int match_mask; |
|---|
| 46 | 33 | struct clock_event_device evt; |
|---|
| 47 | | - struct irqaction act; |
|---|
| 48 | 34 | }; |
|---|
| 49 | 35 | |
|---|
| 50 | 36 | static void __iomem *system_clock __read_mostly; |
|---|
| .. | .. |
|---|
| 126 | 112 | timer->evt.features = CLOCK_EVT_FEAT_ONESHOT; |
|---|
| 127 | 113 | timer->evt.set_next_event = bcm2835_time_set_next_event; |
|---|
| 128 | 114 | timer->evt.cpumask = cpumask_of(0); |
|---|
| 129 | | - timer->act.name = node->name; |
|---|
| 130 | | - timer->act.flags = IRQF_TIMER | IRQF_SHARED; |
|---|
| 131 | | - timer->act.dev_id = timer; |
|---|
| 132 | | - timer->act.handler = bcm2835_time_interrupt; |
|---|
| 133 | 115 | |
|---|
| 134 | | - ret = setup_irq(irq, &timer->act); |
|---|
| 116 | + ret = request_irq(irq, bcm2835_time_interrupt, IRQF_TIMER | IRQF_SHARED, |
|---|
| 117 | + node->name, timer); |
|---|
| 135 | 118 | if (ret) { |
|---|
| 136 | 119 | pr_err("Can't set up timer IRQ\n"); |
|---|
| 137 | 120 | goto err_timer_free; |
|---|