summaryrefslogtreecommitdiffstats
path: root/src/drivers/bus/virtio-pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/bus/virtio-pci.c')
-rw-r--r--src/drivers/bus/virtio-pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/bus/virtio-pci.c b/src/drivers/bus/virtio-pci.c
index 402bf4f12..5d2d62750 100644
--- a/src/drivers/bus/virtio-pci.c
+++ b/src/drivers/bus/virtio-pci.c
@@ -321,7 +321,7 @@ int virtio_pci_map_capability(struct pci_device *pci, int cap, size_t minlen,
region->flags = VIRTIO_PCI_REGION_PORT;
} else {
/* Region mapped into memory space */
- region->base = ioremap(base + offset, length);
+ region->base = pci_ioremap(pci, base + offset, length);
region->flags = VIRTIO_PCI_REGION_MEMORY;
}
}