From patchwork Fri Sep 25 01:53:52 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Armbruster X-Patchwork-Id: 34249 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 07CE3B7B8B for ; Fri, 25 Sep 2009 12:02:17 +1000 (EST) Received: from localhost ([127.0.0.1]:57825 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mr08U-00061A-Fa for incoming@patchwork.ozlabs.org; Thu, 24 Sep 2009 22:02:14 -0400 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) Received: by pike.pond.sub.org (Postfix, from userid 1000) id 6D0B1100A2; Fri, 25 Sep 2009 03:53:53 +0200 (CEST) From: Markus Armbruster To: qemu-devel@nongnu.org Date: Fri, 25 Sep 2009 03:53:52 +0200 Message-Id: <8721aff8e0dee1476a4bdd88e6d9abbf77277dfa.1253843233.git.armbru@redhat.com> X-Mailer: git-send-email 1.6.0.6 In-Reply-To: References: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: [Qemu-devel] [PATCH 5/6] pci_create() is now unused, remove it X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@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);