]> git.proxmox.com Git - mirror_qemu.git/commitdiff
pci_create() is now unused, remove it
authorMarkus Armbruster <armbru@redhat.com>
Fri, 25 Sep 2009 01:53:52 +0000 (03:53 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 5 Oct 2009 14:32:53 +0000 (09:32 -0500)
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/pci.c
hw/pci.h

index dfdae1cad7ddeaf247ee8e6c177419c7fa1c62f2..fd66d1f75b48ada11d60372abbda60e5ce0f0325 100644 (file)
--- 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",
index fdfd2e0927ef848ab5dc704a93d84a3c1c552e09..8138e746112e2ac3740f6be59f167ff6c0148af9 100644 (file)
--- 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);