forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/ipack/carriers/tpci200.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /**
23 * tpci200.c
34 *
....@@ -6,10 +7,6 @@
67 * Copyright (C) 2009-2012 CERN (www.cern.ch)
78 * Author: Nicolas Serafini, EIC2 SA
89 * Author: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
9
- *
10
- * This program is free software; you can redistribute it and/or modify it
11
- * under the terms of the GNU General Public License as published by the Free
12
- * Software Foundation; version 2 of the License.
1310 */
1411
1512 #include <linux/module.h>
....@@ -298,7 +295,7 @@
298295
299296 /* Map internal tpci200 driver user space */
300297 tpci200->info->interface_regs =
301
- ioremap_nocache(pci_resource_start(tpci200->info->pdev,
298
+ ioremap(pci_resource_start(tpci200->info->pdev,
302299 TPCI200_IP_INTERFACE_BAR),
303300 TPCI200_IFACE_SIZE);
304301 if (!tpci200->info->interface_regs) {
....@@ -546,7 +543,7 @@
546543 ret = -EBUSY;
547544 goto err_tpci200_info;
548545 }
549
- tpci200->info->cfg_regs = ioremap_nocache(
546
+ tpci200->info->cfg_regs = ioremap(
550547 pci_resource_start(pdev, TPCI200_CFG_MEM_BAR),
551548 pci_resource_len(pdev, TPCI200_CFG_MEM_BAR));
552549 if (!tpci200->info->cfg_regs) {