forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/arch/sh/drivers/pci/fixups-dreamcast.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0
12 /*
23 * arch/sh/drivers/pci/fixups-dreamcast.c
34 *
....@@ -9,10 +10,6 @@
910 * This file originally bore the message (with enclosed-$):
1011 * Id: pci.c,v 1.3 2003/05/04 19:29:46 lethal Exp
1112 * Dreamcast PCI: Supports SEGA Broadband Adaptor only.
12
- *
13
- * This file is subject to the terms and conditions of the GNU General Public
14
- * License. See the file "COPYING" in the main directory of this archive
15
- * for more details.
1613 */
1714
1815 #include <linux/sched.h>
....@@ -22,7 +19,7 @@
2219 #include <linux/init.h>
2320 #include <linux/irq.h>
2421 #include <linux/pci.h>
25
-#include <linux/dma-mapping.h>
22
+#include <linux/dma-map-ops.h>
2623
2724 #include <asm/io.h>
2825 #include <asm/irq.h>
....@@ -66,8 +63,7 @@
6663 BUG_ON(dma_declare_coherent_memory(&dev->dev,
6764 res.start,
6865 region.start,
69
- resource_size(&res),
70
- DMA_MEMORY_EXCLUSIVE));
66
+ resource_size(&res)));
7167 break;
7268 default:
7369 printk("PCI: Failed resource fixup\n");