From patchwork Sat Mar 14 06:19:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Huth X-Patchwork-Id: 450164 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id EFB4D140083 for ; Sat, 14 Mar 2015 17:22:37 +1100 (AEDT) Received: from localhost ([::1]:39784 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YWfT2-0003Lk-4b for incoming@patchwork.ozlabs.org; Sat, 14 Mar 2015 02:22:36 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48648) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YWfQQ-0006QU-DO for qemu-devel@nongnu.org; Sat, 14 Mar 2015 02:19:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YWfQD-0004Br-BW for qemu-devel@nongnu.org; Sat, 14 Mar 2015 02:19:54 -0400 Received: from e06smtp10.uk.ibm.com ([195.75.94.106]:33859) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YWfQD-0004Av-1N for qemu-devel@nongnu.org; Sat, 14 Mar 2015 02:19:41 -0400 Received: from /spool/local by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sat, 14 Mar 2015 06:19:39 -0000 Received: from d06dlp01.portsmouth.uk.ibm.com (9.149.20.13) by e06smtp10.uk.ibm.com (192.168.101.140) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Sat, 14 Mar 2015 06:19:37 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id 2B4BD17D805A; Sat, 14 Mar 2015 06:20:00 +0000 (GMT) Received: from d06av07.portsmouth.uk.ibm.com (d06av07.portsmouth.uk.ibm.com [9.149.37.248]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t2E6JacV46596242; Sat, 14 Mar 2015 06:19:36 GMT Received: from d06av07.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av07.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t2E6Ja9Q013402; Sat, 14 Mar 2015 02:19:36 -0400 Received: from oc7435384737.ibm.com (sig-9-84-84-76.evts.de.ibm.com [9.84.84.76]) by d06av07.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id t2E6JYkV013361; Sat, 14 Mar 2015 02:19:36 -0400 From: Thomas Huth To: qemu-devel@nongnu.org, qemu-trivial@nongnu.org Date: Sat, 14 Mar 2015 07:19:30 +0100 Message-Id: <1426313974-25607-4-git-send-email-thuth@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1426313974-25607-1-git-send-email-thuth@linux.vnet.ibm.com> References: <1426313974-25607-1-git-send-email-thuth@linux.vnet.ibm.com> X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15031406-0041-0000-0000-0000039465FB X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 195.75.94.106 Cc: Thomas Huth , "Michael S. Tsirkin" Subject: [Qemu-devel] [PATCH v2 3/7] pci: Remove unused function ich9_d2pbr_init() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org The function ich9_d2pbr_init() is completely unused and thus can be deleted. Signed-off-by: Thomas Huth Cc: Michael S. Tsirkin Reviewed-by: Michael S. Tsirkin --- hw/pci-bridge/i82801b11.c | 21 --------------------- include/hw/i386/ich9.h | 1 - 2 files changed, 0 insertions(+), 22 deletions(-) diff --git a/hw/pci-bridge/i82801b11.c b/hw/pci-bridge/i82801b11.c index 14cd7fd..7e79bc0 100644 --- a/hw/pci-bridge/i82801b11.c +++ b/hw/pci-bridge/i82801b11.c @@ -101,27 +101,6 @@ static const TypeInfo i82801b11_bridge_info = { .class_init = i82801b11_bridge_class_init, }; -PCIBus *ich9_d2pbr_init(PCIBus *bus, int devfn, int sec_bus) -{ - PCIDevice *d; - PCIBridge *br; - char buf[16]; - DeviceState *qdev; - - d = pci_create_multifunction(bus, devfn, true, "i82801b11-bridge"); - if (!d) { - return NULL; - } - br = PCI_BRIDGE(d); - qdev = DEVICE(d); - - snprintf(buf, sizeof(buf), "pci.%d", sec_bus); - pci_bridge_map_irq(br, buf, pci_swizzle_map_irq_fn); - qdev_init_nofail(qdev); - - return pci_bridge_get_sec_bus(br); -} - static void d2pbr_register(void) { type_register_static(&i82801b11_bridge_info); diff --git a/include/hw/i386/ich9.h b/include/hw/i386/ich9.h index 59ea25b..5cede9b 100644 --- a/include/hw/i386/ich9.h +++ b/include/hw/i386/ich9.h @@ -19,7 +19,6 @@ void ich9_lpc_set_irq(void *opaque, int irq_num, int level); int ich9_lpc_map_irq(PCIDevice *pci_dev, int intx); PCIINTxRoute ich9_route_intx_pin_to_irq(void *opaque, int pirq_pin); void ich9_lpc_pm_init(PCIDevice *pci_lpc); -PCIBus *ich9_d2pbr_init(PCIBus *bus, int devfn, int sec_bus); I2CBus *ich9_smb_init(PCIBus *bus, int devfn, uint32_t smb_io_base); #define ICH9_CC_SIZE (16 * 1024) /* 16KB */