forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/arch/sh/drivers/dma/dma-pvr2.c
....@@ -1,13 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0
12 /*
23 * arch/sh/drivers/dma/dma-pvr2.c
34 *
45 * NEC PowerVR 2 (Dreamcast) DMA support
56 *
67 * Copyright (C) 2003, 2004 Paul Mundt
7
- *
8
- * This file is subject to the terms and conditions of the GNU General Public
9
- * License. See the file "COPYING" in the main directory of this archive
10
- * for more details.
118 */
129 #include <linux/init.h>
1310 #include <linux/kernel.h>
....@@ -67,11 +64,6 @@
6764 return 0;
6865 }
6966
70
-static struct irqaction pvr2_dma_irq = {
71
- .name = "pvr2 DMA handler",
72
- .handler = pvr2_dma_interrupt,
73
-};
74
-
7567 static struct dma_ops pvr2_dma_ops = {
7668 .request = pvr2_request_dma,
7769 .get_residue = pvr2_get_dma_residue,
....@@ -87,7 +79,9 @@
8779
8880 static int __init pvr2_dma_init(void)
8981 {
90
- setup_irq(HW_EVENT_PVR2_DMA, &pvr2_dma_irq);
82
+ if (request_irq(HW_EVENT_PVR2_DMA, pvr2_dma_interrupt, 0,
83
+ "pvr2 DMA handler", NULL))
84
+ pr_err("Failed to register pvr2 DMA handler interrupt\n");
9185 request_dma(PVR2_CASCADE_CHAN, "pvr2 cascade");
9286
9387 return register_dmac(&pvr2_dma_info);
....@@ -105,4 +99,4 @@
10599
106100 MODULE_AUTHOR("Paul Mundt <lethal@linux-sh.org>");
107101 MODULE_DESCRIPTION("NEC PowerVR 2 DMA driver");
108
-MODULE_LICENSE("GPL");
102
+MODULE_LICENSE("GPL v2");