.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * linux/arch/arm/mach-ebsa110/core.c |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 1998-2001 Russell King |
---|
5 | | - * |
---|
6 | | - * This program is free software; you can redistribute it and/or modify |
---|
7 | | - * it under the terms of the GNU General Public License version 2 as |
---|
8 | | - * published by the Free Software Foundation. |
---|
9 | 6 | * |
---|
10 | 7 | * Extra MM routines for the EBSA-110 architecture |
---|
11 | 8 | */ |
---|
.. | .. |
---|
20 | 17 | #include <asm/irq.h> |
---|
21 | 18 | #include <asm/setup.h> |
---|
22 | 19 | #include <asm/mach-types.h> |
---|
23 | | -#include <asm/pgtable.h> |
---|
24 | 20 | #include <asm/page.h> |
---|
25 | 21 | #include <asm/system_misc.h> |
---|
26 | 22 | |
---|
.. | .. |
---|
204 | 200 | return IRQ_HANDLED; |
---|
205 | 201 | } |
---|
206 | 202 | |
---|
207 | | -static struct irqaction ebsa110_timer_irq = { |
---|
208 | | - .name = "EBSA110 Timer Tick", |
---|
209 | | - .flags = IRQF_TIMER | IRQF_IRQPOLL, |
---|
210 | | - .handler = ebsa110_timer_interrupt, |
---|
211 | | -}; |
---|
212 | | - |
---|
213 | 203 | /* |
---|
214 | 204 | * Set up timer interrupt. |
---|
215 | 205 | */ |
---|
216 | 206 | void __init ebsa110_timer_init(void) |
---|
217 | 207 | { |
---|
| 208 | + int irq = IRQ_EBSA110_TIMER0; |
---|
| 209 | + |
---|
218 | 210 | arch_gettimeoffset = ebsa110_gettimeoffset; |
---|
219 | 211 | |
---|
220 | 212 | /* |
---|
.. | .. |
---|
224 | 216 | __raw_writeb(COUNT & 0xff, PIT_T1); |
---|
225 | 217 | __raw_writeb(COUNT >> 8, PIT_T1); |
---|
226 | 218 | |
---|
227 | | - setup_irq(IRQ_EBSA110_TIMER0, &ebsa110_timer_irq); |
---|
| 219 | + if (request_irq(irq, ebsa110_timer_interrupt, IRQF_TIMER | IRQF_IRQPOLL, |
---|
| 220 | + "EBSA110 Timer Tick", NULL)) |
---|
| 221 | + pr_err("Failed to request irq %d (EBSA110 Timer Tick)\n", irq); |
---|
228 | 222 | } |
---|
229 | 223 | |
---|
230 | 224 | static struct plat_serial8250_port serial_platform_data[] = { |
---|