diff options
author | Stephen M. Cameron <scameron@beardog.cce.hp.com> | 2012-07-26 12:34:23 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-09-14 06:51:50 -0400 |
commit | 088ba34c92055547ef4cc862a863334c01d9a304 (patch) | |
tree | 32ac1f67d2d907f5149e58524df09b1e33f50e2c | |
parent | d6ebd0f758bec06041442aa62c602281005fb9ef (diff) |
[SCSI] hpsa: use ioremap_nocache instead of ioremap
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>
-rw-r--r-- | drivers/scsi/hpsa.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 415db96ec1ed..5ed5859f4b6c 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c | |||
@@ -3337,7 +3337,8 @@ static void __iomem *remap_pci_mem(ulong base, ulong size) | |||
3337 | { | 3337 | { |
3338 | ulong page_base = ((ulong) base) & PAGE_MASK; | 3338 | ulong page_base = ((ulong) base) & PAGE_MASK; |
3339 | ulong page_offs = ((ulong) base) - page_base; | 3339 | ulong page_offs = ((ulong) base) - page_base; |
3340 | void __iomem *page_remapped = ioremap(page_base, page_offs + size); | 3340 | void __iomem *page_remapped = ioremap_nocache(page_base, |
3341 | page_offs + size); | ||
3341 | 3342 | ||
3342 | return page_remapped ? (page_remapped + page_offs) : NULL; | 3343 | return page_remapped ? (page_remapped + page_offs) : NULL; |
3343 | } | 3344 | } |