From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mr00c-00042X-6j for qemu-devel@nongnu.org; Thu, 24 Sep 2009 21:54:06 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mr00X-00040b-JQ for qemu-devel@nongnu.org; Thu, 24 Sep 2009 21:54:05 -0400 Received: from [199.232.76.173] (port=39181 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mr00X-00040W-9i for qemu-devel@nongnu.org; Thu, 24 Sep 2009 21:54:01 -0400 Received: from oxygen.pond.sub.org ([213.239.205.148]:39232) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mr00W-0000as-Q8 for qemu-devel@nongnu.org; Thu, 24 Sep 2009 21:54:01 -0400 Received: from pike.pond.sub.org (pD9E39B51.dip.t-dialin.net [217.227.155.81]) by oxygen.pond.sub.org (Postfix) with ESMTPA id 94E19276D21 for ; Fri, 25 Sep 2009 03:53:59 +0200 (CEST) From: Markus Armbruster Date: Fri, 25 Sep 2009 03:53:52 +0200 Message-Id: <8721aff8e0dee1476a4bdd88e6d9abbf77277dfa.1253843233.git.armbru@redhat.com> In-Reply-To: References: Subject: [Qemu-devel] [PATCH 5/6] pci_create() is now unused, remove it List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Signed-off-by: Markus Armbruster --- hw/pci.c | 18 ------------------ hw/pci.h | 1 - 2 files changed, 0 insertions(+), 19 deletions(-) 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); -- 1.6.2.5