hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/clocksource/dw_apb_timer.c
....@@ -1,12 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * (C) Copyright 2009 Intel Corporation
34 * Author: Jacob Pan (jacob.jun.pan@intel.com)
45 *
56 * Shared with ARM platforms, Jamie Iles, Picochip 2011
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License version 2 as
9
- * published by the Free Software Foundation.
107 *
118 * Support for the Synopsys DesignWare APB Timers.
129 */
....@@ -274,15 +271,10 @@
274271 dw_ced->ced.rating = rating;
275272 dw_ced->ced.name = name;
276273
277
- dw_ced->irqaction.name = dw_ced->ced.name;
278
- dw_ced->irqaction.handler = dw_apb_clockevent_irq;
279
- dw_ced->irqaction.dev_id = &dw_ced->ced;
280
- dw_ced->irqaction.irq = irq;
281
- dw_ced->irqaction.flags = IRQF_TIMER | IRQF_IRQPOLL |
282
- IRQF_NOBALANCING;
283
-
284274 dw_ced->eoi = apbt_eoi;
285
- err = setup_irq(irq, &dw_ced->irqaction);
275
+ err = request_irq(irq, dw_apb_clockevent_irq,
276
+ IRQF_TIMER | IRQF_IRQPOLL | IRQF_NOBALANCING,
277
+ dw_ced->ced.name, &dw_ced->ced);
286278 if (err) {
287279 pr_err("failed to request timer irq\n");
288280 kfree(dw_ced);