hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/clocksource/bcm2835_timer.c
....@@ -1,19 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0+
12 /*
23 * 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
174 */
185
196 #include <linux/bitops.h>
....@@ -44,7 +31,6 @@
4431 void __iomem *compare;
4532 int match_mask;
4633 struct clock_event_device evt;
47
- struct irqaction act;
4834 };
4935
5036 static void __iomem *system_clock __read_mostly;
....@@ -126,12 +112,9 @@
126112 timer->evt.features = CLOCK_EVT_FEAT_ONESHOT;
127113 timer->evt.set_next_event = bcm2835_time_set_next_event;
128114 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;
133115
134
- ret = setup_irq(irq, &timer->act);
116
+ ret = request_irq(irq, bcm2835_time_interrupt, IRQF_TIMER | IRQF_SHARED,
117
+ node->name, timer);
135118 if (ret) {
136119 pr_err("Can't set up timer IRQ\n");
137120 goto err_timer_free;