forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/drivers/vme/bridges/vme_tsi148.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Support for the Tundra TSI148 VME-PCI Bridge Chip
34 *
....@@ -6,11 +7,6 @@
67 *
78 * Based on work by Tom Armistead and Ajit Prem
89 * Copyright 2004 Motorola Inc.
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
12
- * Free Software Foundation; either version 2 of the License, or (at your
13
- * option) any later version.
1410 */
1511
1612 #include <linux/module.h>
....@@ -774,7 +770,7 @@
774770 goto err_resource;
775771 }
776772
777
- image->kern_base = ioremap_nocache(
773
+ image->kern_base = ioremap(
778774 image->bus_resource.start, size);
779775 if (!image->kern_base) {
780776 dev_err(tsi148_bridge->parent, "Failed to remap resource\n");
....@@ -1775,6 +1771,7 @@
17751771 return 0;
17761772
17771773 err_dma:
1774
+ list_del(&entry->list);
17781775 err_dest:
17791776 err_source:
17801777 err_align:
....@@ -2321,7 +2318,7 @@
23212318 }
23222319
23232320 /* map registers in BAR 0 */
2324
- tsi148_device->base = ioremap_nocache(pci_resource_start(pdev, 0),
2321
+ tsi148_device->base = ioremap(pci_resource_start(pdev, 0),
23252322 4096);
23262323 if (!tsi148_device->base) {
23272324 dev_err(&pdev->dev, "Unable to remap CRG region\n");