hc
2023-12-11 1f93a7dfd1f8d5ff7a5c53246c7534fe2332d6f4
kernel/drivers/char/applicom.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /* Derived from Applicom driver ac.c for SCO Unix */
23 /* Ported by David Woodhouse, Axiom (Cambridge) Ltd. */
34 /* dwmw2@infradead.org 30/8/98 */
....@@ -52,7 +53,6 @@
5253 #define MAX_BOARD 8 /* maximum of pc board possible */
5354 #define MAX_ISA_BOARD 4
5455 #define LEN_RAM_IO 0x800
55
-#define AC_MINOR 157
5656
5757 #ifndef PCI_VENDOR_ID_APPLICOM
5858 #define PCI_VENDOR_ID_APPLICOM 0x1389
....@@ -203,7 +203,7 @@
203203 if (pci_enable_device(dev))
204204 return -EIO;
205205
206
- RamIO = ioremap_nocache(pci_resource_start(dev, 0), LEN_RAM_IO);
206
+ RamIO = ioremap(pci_resource_start(dev, 0), LEN_RAM_IO);
207207
208208 if (!RamIO) {
209209 printk(KERN_INFO "ac.o: Failed to ioremap PCI memory "
....@@ -258,7 +258,7 @@
258258 /* Now try the specified ISA cards */
259259
260260 for (i = 0; i < MAX_ISA_BOARD; i++) {
261
- RamIO = ioremap_nocache(mem + (LEN_RAM_IO * i), LEN_RAM_IO);
261
+ RamIO = ioremap(mem + (LEN_RAM_IO * i), LEN_RAM_IO);
262262
263263 if (!RamIO) {
264264 printk(KERN_INFO "ac.o: Failed to ioremap the ISA card's memory space (slot #%d)\n", i + 1);