forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 297b60346df8beafee954a0fd7c2d64f33f3b9bc
kernel/arch/arm/mach-footbridge/isa-irq.c
....@@ -1,11 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * linux/arch/arm/mach-footbridge/irq.c
34 *
45 * Copyright (C) 1996-2000 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.
96 *
107 * Changelog:
118 * 22-Aug-1998 RMK Restructured IRQ routines
....@@ -99,11 +96,6 @@
9996 generic_handle_irq(isa_irq);
10097 }
10198
102
-static struct irqaction irq_cascade = {
103
- .handler = no_action,
104
- .name = "cascade",
105
-};
106
-
10799 static struct resource pic1_resource = {
108100 .name = "pic1",
109101 .start = 0x20,
....@@ -163,7 +155,10 @@
163155
164156 request_resource(&ioport_resource, &pic1_resource);
165157 request_resource(&ioport_resource, &pic2_resource);
166
- setup_irq(IRQ_ISA_CASCADE, &irq_cascade);
158
+
159
+ irq = IRQ_ISA_CASCADE;
160
+ if (request_irq(irq, no_action, 0, "cascade", NULL))
161
+ pr_err("Failed to request irq %u (cascade)\n", irq);
167162
168163 irq_set_chained_handler(host_irq, isa_irq_handler);
169164