21 lines
478 B
Diff
21 lines
478 B
Diff
--- a/drivers/mtd/devices/phram.c 2024-12-20 23:42:19.248462526 +0100
|
|
+++ b/drivers/mtd/devices/phram.c 2024-12-20 23:41:11.344218259 +0100
|
|
@@ -85,7 +85,7 @@
|
|
{
|
|
void *addr = NULL;
|
|
|
|
- if (phram->cached)
|
|
+ if (phram->cached || true)
|
|
addr = memremap(start, len, MEMREMAP_WB);
|
|
else
|
|
addr = (void __force *)ioremap(start, len);
|
|
@@ -101,7 +101,7 @@
|
|
{
|
|
void *addr = phram->mtd.priv;
|
|
|
|
- if (phram->cached) {
|
|
+ if (phram->cached || true) {
|
|
memunmap(addr);
|
|
return;
|
|
}
|