summaryrefslogtreecommitdiff
path: root/hw/usb-ohci.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2009-06-14 11:38:53 +0300
committerAnthony Liguori <aliguori@us.ibm.com>2009-06-16 15:18:38 -0500
commit28c2c26495da884f534d95bfda7c9b411e1417fc (patch)
treed7966a686f993fb87dbf04cc7a18697dd1f5e13e /hw/usb-ohci.c
parente9179ce1a07ff8699fae89dc1cd87efc3dd80c9d (diff)
downloadqemu-28c2c26495da884f534d95bfda7c9b411e1417fc.tar.gz
Rename pci_register_io_region() to pci_register_bar()
This function is used to manage a PCI BAR, so make the more generic pci_register_io_region() available to other uses. Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/usb-ohci.c')
-rw-r--r--hw/usb-ohci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/usb-ohci.c b/hw/usb-ohci.c
index b921875fa0..c575480b45 100644
--- a/hw/usb-ohci.c
+++ b/hw/usb-ohci.c
@@ -1732,7 +1732,7 @@ void usb_ohci_init_pci(struct PCIBus *bus, int num_ports, int devfn)
usb_ohci_init(&ohci->state, num_ports, devfn, ohci->pci_dev.irq[0],
OHCI_TYPE_PCI, ohci->pci_dev.name, 0);
- pci_register_io_region((struct PCIDevice *)ohci, 0, 256,
+ pci_register_bar((struct PCIDevice *)ohci, 0, 256,
PCI_ADDRESS_SPACE_MEM, ohci_mapfunc);
}