forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/arch/powerpc/platforms/85xx/mpc85xx_cds.c
....@@ -1,14 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * MPC85xx setup and early boot code plus other random bits.
34 *
45 * Maintained by Kumar Gala (see MAINTAINERS for contact information)
56 *
67 * Copyright 2005, 2011-2012 Freescale Semiconductor Inc.
7
- *
8
- * This program is free software; you can redistribute it and/or modify it
9
- * under the terms of the GNU General Public License as published by the
10
- * Free Software Foundation; either version 2 of the License, or (at your
11
- * option) any later version.
128 */
139
1410 #include <linux/stddef.h>
....@@ -26,8 +22,8 @@
2622 #include <linux/interrupt.h>
2723 #include <linux/fsl_devices.h>
2824 #include <linux/of_platform.h>
25
+#include <linux/pgtable.h>
2926
30
-#include <asm/pgtable.h>
3127 #include <asm/page.h>
3228 #include <linux/atomic.h>
3329 #include <asm/time.h>
....@@ -222,12 +218,6 @@
222218 {
223219 return IRQ_HANDLED;
224220 }
225
-
226
-static struct irqaction mpc85xxcds_8259_irqaction = {
227
- .handler = mpc85xx_8259_cascade_action,
228
- .flags = IRQF_SHARED | IRQF_NO_THREAD,
229
- .name = "8259 cascade",
230
-};
231221 #endif /* PPC_I8259 */
232222 #endif /* CONFIG_PCI */
233223
....@@ -275,7 +265,10 @@
275265 * disabled when the last user of the shared IRQ line frees their
276266 * interrupt.
277267 */
278
- if ((ret = setup_irq(cascade_irq, &mpc85xxcds_8259_irqaction))) {
268
+ ret = request_irq(cascade_irq, mpc85xx_8259_cascade_action,
269
+ IRQF_SHARED | IRQF_NO_THREAD, "8259 cascade",
270
+ cascade_node);
271
+ if (ret) {
279272 printk(KERN_ERR "Failed to setup cascade interrupt\n");
280273 return ret;
281274 }