[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-trivial] [PULL 15/42] pci: Remove unused function ich9_d2pbr_init(
From: |
Michael Tokarev |
Subject: |
[Qemu-trivial] [PULL 15/42] pci: Remove unused function ich9_d2pbr_init() |
Date: |
Thu, 30 Apr 2015 08:08:28 +0300 |
From: Thomas Huth <address@hidden>
The function ich9_d2pbr_init() is completely unused and
thus can be deleted.
Signed-off-by: Thomas Huth <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael Tokarev <address@hidden>
---
hw/pci-bridge/i82801b11.c | 21 ---------------------
include/hw/i386/ich9.h | 1 -
2 files changed, 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 c171578..f4e522c 100644
--- a/include/hw/i386/ich9.h
+++ b/include/hw/i386/ich9.h
@@ -18,7 +18,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 */
--
2.1.4
- [Qemu-trivial] [PULL 29/42] microblaze: cpu: Renumber EXCP_* constants to close gap, (continued)
- [Qemu-trivial] [PULL 29/42] microblaze: cpu: Renumber EXCP_* constants to close gap, Michael Tokarev, 2015/04/30
- [Qemu-trivial] [PULL 23/42] libcacard: do not use full paths for include files in the same dir, Michael Tokarev, 2015/04/30
- [Qemu-trivial] [PULL 28/42] microblaze: cpu: Delete EXCP_NMI, Michael Tokarev, 2015/04/30
- [Qemu-trivial] [PULL 37/42] qmp-commands: Fix typo, Michael Tokarev, 2015/04/30
- [Qemu-trivial] [PULL 04/42] ui/vnc : fix coding style, Michael Tokarev, 2015/04/30
- [Qemu-trivial] [PULL 06/42] ui/console : remove 'struct' from 'typedef struct' type, Michael Tokarev, 2015/04/30
- [Qemu-trivial] [PULL 08/42] misc: Fix new collection of typos, Michael Tokarev, 2015/04/30
- [Qemu-trivial] [PULL 33/42] qemu-char: remove unused list node from FDCharDriver, Michael Tokarev, 2015/04/30
- [Qemu-trivial] [PULL 34/42] coroutine: remove unnecessary parentheses in qemu_co_queue_empty, Michael Tokarev, 2015/04/30
- [Qemu-trivial] [PULL 11/42] tpm: fix coding style, Michael Tokarev, 2015/04/30
- [Qemu-trivial] [PULL 15/42] pci: Remove unused function ich9_d2pbr_init(),
Michael Tokarev <=
- [Qemu-trivial] [PULL 22/42] libcacard: stop including qemu-common.h, Michael Tokarev, 2015/04/30
- [Qemu-trivial] [PULL 36/42] i440fx-test: remove ARRAY_SIZE redefinition, Michael Tokarev, 2015/04/30
- [Qemu-trivial] [PULL 21/42] docs/atomics.txt: fix two typos, Michael Tokarev, 2015/04/30
- Re: [Qemu-trivial] [Qemu-devel] [PULL 00/42] Trivial patches for 2015-04-30, Peter Maydell, 2015/04/30