Patchwork [5/6] pci_create() is now unused, remove it

login
register
mail settings
Submitter Markus Armbruster
Date Sept. 25, 2009, 1:53 a.m.
Message ID <8721aff8e0dee1476a4bdd88e6d9abbf77277dfa.1253843233.git.armbru@redhat.com>
Download mbox | patch
Permalink /patch/34249/
State Superseded
Headers show

Comments

Markus Armbruster - Sept. 25, 2009, 1:53 a.m.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
 hw/pci.c |   18 ------------------
 hw/pci.h |    1 -
 2 files changed, 0 insertions(+), 19 deletions(-)

Patch

diff --git a/hw/pci.c b/hw/pci.c
index e43b53e..ec0fc7c 100644
--- a/hw/pci.c
+++ b/hw/pci.c
@@ -764,24 +764,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 51c5085..689461f 100644
--- a/hw/pci.h
+++ b/hw/pci.h
@@ -336,7 +336,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);