summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>2012-07-20 09:39:05 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-08-13 18:53:55 -0700
commit5b47f3cbf03f69efc24b34200d6b432fe354b8d5 (patch)
tree6d0bb6ba9dd40a459e2b879ca7d596b80129457b
parentf45651f9bb22f7ab60d806707be2c75f3d219157 (diff)
downloadlinux-stable-5b47f3cbf03f69efc24b34200d6b432fe354b8d5.tar.gz
linux-stable-5b47f3cbf03f69efc24b34200d6b432fe354b8d5.tar.bz2
linux-stable-5b47f3cbf03f69efc24b34200d6b432fe354b8d5.zip
Staging: ipack/bridges/tpci200: use ioremap_nocache instead of ioremap
The CPU might write-combine and/or cache memory access. Something that for most modules is not desired. Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/ipack/bridges/tpci200.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/ipack/bridges/tpci200.c b/drivers/staging/ipack/bridges/tpci200.c
index cee25c78a11a..5831af8f1e8c 100644
--- a/drivers/staging/ipack/bridges/tpci200.c
+++ b/drivers/staging/ipack/bridges/tpci200.c
@@ -390,15 +390,15 @@ static int tpci200_register(struct tpci200_board *tpci200)
/* Map internal tpci200 driver user space */
tpci200->info->interface_regs =
- ioremap(pci_resource_start(tpci200->info->pdev,
+ ioremap_nocache(pci_resource_start(tpci200->info->pdev,
TPCI200_IP_INTERFACE_BAR),
TPCI200_IFACE_SIZE);
tpci200->info->ioidint_space =
- ioremap(pci_resource_start(tpci200->info->pdev,
+ ioremap_nocache(pci_resource_start(tpci200->info->pdev,
TPCI200_IO_ID_INT_SPACES_BAR),
TPCI200_IOIDINT_SIZE);
tpci200->info->mem8_space =
- ioremap(pci_resource_start(tpci200->info->pdev,
+ ioremap_nocache(pci_resource_start(tpci200->info->pdev,
TPCI200_MEM8_SPACE_BAR),
TPCI200_MEM8_SIZE);
@@ -677,7 +677,7 @@ static int tpci200_slot_map_space(struct ipack_device *dev,
virt_addr_space->size = size_to_map;
virt_addr_space->address =
- ioremap((unsigned long)phys_address, size_to_map);
+ ioremap_nocache((unsigned long)phys_address, size_to_map);
out_unlock:
mutex_unlock(&tpci200->mutex);