Skip to contentSkip to conversation

SFI: use ioremap_cache() instead of ioremap()

PATCH New Len Brown 1 participant 1 message Jan 12, 2011

lore
Share & tools
lore

Len Brown

author
#0 lore raw

PATCH 1/1 SFI: use ioremap_cache() instead of ioremap()

From: Len Brown <[email protected]>

We copied ACPI's oversight of using ioremap() and creating non-cached table mappings when we should have been using ioremap_cache().

---
 drivers/sfi/sfi_core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/sfi/sfi_core.c +1 -1
index ceba593..04113e5 100644
@@ -101,7 +101,7 @@ static void __iomem * __ref sfi_map_memory(u64 phys, u32 size)
 		return NULL;
 
 	if (sfi_use_ioremap)
-		return ioremap(phys, size);
+		return ioremap_cache(phys, size);
 	else
 		return early_ioremap(phys, size);
 }
Signature · 1 line
1.7.4.rc1.7.g2cf08