[SCSI] hpsa: use ioremap_nocache instead of ioremap
authorStephen M. Cameron <scameron@beardog.cce.hp.com>
Thu, 26 Jul 2012 16:34:23 +0000 (11:34 -0500)
committerJames Bottomley <JBottomley@Parallels.com>
Fri, 14 Sep 2012 10:51:50 +0000 (11:51 +0100)
I think ioremap() ends up being equivalent to ioremap_nocache
by default, but we should signal our intent that these mappings
should be non-cacheable.

Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/hpsa.c

index 415db96ec1ed23b5ffef8af352aa8e701bdb2155..5ed5859f4b6cb2fb5ce8e0918d799eaa17300979 100644 (file)
@@ -3337,7 +3337,8 @@ static void __iomem *remap_pci_mem(ulong base, ulong size)
 {
        ulong page_base = ((ulong) base) & PAGE_MASK;
        ulong page_offs = ((ulong) base) - page_base;
-       void __iomem *page_remapped = ioremap(page_base, page_offs + size);
+       void __iomem *page_remapped = ioremap_nocache(page_base,
+               page_offs + size);
 
        return page_remapped ? (page_remapped + page_offs) : NULL;
 }
This page took 0.050274 seconds and 5 git commands to generate.