aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2009-09-25 03:53:52 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-10-05 09:32:53 -0500
commit3312958dba81a8aa748f7dc5bfd360f5c9e8ea13 (patch)
tree383a325bc5e01cfda538eab8fd11f3abe68bdafb
parent07caea315a85ebfe90851f9c2e4ef3fdd24117b5 (diff)
pci_create() is now unused, remove it
Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--hw/pci.c18
-rw-r--r--hw/pci.h1
2 files changed, 0 insertions, 19 deletions
diff --git a/hw/pci.c b/hw/pci.c
index dfdae1cad..fd66d1f75 100644
--- a/hw/pci.c
+++ b/hw/pci.c
@@ -809,24 +809,6 @@ void pci_info(Monitor *mon)
pci_for_each_device(0, pci_info_device);
}
-PCIDevice *pci_create(const char *name, const char *devaddr)
-{
- PCIBus *bus;
- int devfn;
- DeviceState *dev;
-
- bus = pci_get_bus_devfn(&devfn, devaddr);
- if (!bus) {
- fprintf(stderr, "Invalid PCI device address %s for device %s\n",
- devaddr, name);
- exit(1);
- }
-
- dev = qdev_create(&bus->qbus, name);
- qdev_prop_set_uint32(dev, "addr", devfn);
- return (PCIDevice *)dev;
-}
-
static const char * const pci_nic_models[] = {
"ne2k_pci",
"i82551",
diff --git a/hw/pci.h b/hw/pci.h
index fdfd2e092..8138e7461 100644
--- a/hw/pci.h
+++ b/hw/pci.h
@@ -339,7 +339,6 @@ typedef struct {
void pci_qdev_register(PCIDeviceInfo *info);
void pci_qdev_register_many(PCIDeviceInfo *info);
-PCIDevice *pci_create(const char *name, const char *devaddr);
PCIDevice *pci_create_noinit(PCIBus *bus, int devfn, const char *name);
PCIDevice *pci_create_simple(PCIBus *bus, int devfn, const char *name);