hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/mtd/maps/nettel.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /****************************************************************************/
23
34 /*
....@@ -175,7 +176,7 @@
175176 #endif
176177 int rc = 0;
177178
178
- nettel_mmcrp = (void *) ioremap_nocache(0xfffef000, 4096);
179
+ nettel_mmcrp = (void *) ioremap(0xfffef000, 4096);
179180 if (nettel_mmcrp == NULL) {
180181 printk("SNAPGEAR: failed to disable MMCR cache??\n");
181182 return(-EIO);
....@@ -216,7 +217,7 @@
216217 __asm__ ("wbinvd");
217218
218219 nettel_amd_map.phys = amdaddr;
219
- nettel_amd_map.virt = ioremap_nocache(amdaddr, maxsize);
220
+ nettel_amd_map.virt = ioremap(amdaddr, maxsize);
220221 if (!nettel_amd_map.virt) {
221222 printk("SNAPGEAR: failed to ioremap() BOOTCS\n");
222223 iounmap(nettel_mmcrp);
....@@ -302,7 +303,7 @@
302303 /* Probe for the size of the first Intel flash */
303304 nettel_intel_map.size = maxsize;
304305 nettel_intel_map.phys = intel0addr;
305
- nettel_intel_map.virt = ioremap_nocache(intel0addr, maxsize);
306
+ nettel_intel_map.virt = ioremap(intel0addr, maxsize);
306307 if (!nettel_intel_map.virt) {
307308 printk("SNAPGEAR: failed to ioremap() ROMCS1\n");
308309 rc = -EIO;
....@@ -336,7 +337,7 @@
336337 iounmap(nettel_intel_map.virt);
337338
338339 nettel_intel_map.size = maxsize;
339
- nettel_intel_map.virt = ioremap_nocache(intel0addr, maxsize);
340
+ nettel_intel_map.virt = ioremap(intel0addr, maxsize);
340341 if (!nettel_intel_map.virt) {
341342 printk("SNAPGEAR: failed to ioremap() ROMCS1/2\n");
342343 rc = -EIO;