pci: Remove unused function ich9_d2pbr_init()
The function ich9_d2pbr_init() is completely unused and thus can be deleted. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
9dcfda1298
commit
04768b985e
@ -101,27 +101,6 @@ static const TypeInfo i82801b11_bridge_info = {
|
|||||||
.class_init = i82801b11_bridge_class_init,
|
.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)
|
static void d2pbr_register(void)
|
||||||
{
|
{
|
||||||
type_register_static(&i82801b11_bridge_info);
|
type_register_static(&i82801b11_bridge_info);
|
||||||
|
@ -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);
|
int ich9_lpc_map_irq(PCIDevice *pci_dev, int intx);
|
||||||
PCIINTxRoute ich9_route_intx_pin_to_irq(void *opaque, int pirq_pin);
|
PCIINTxRoute ich9_route_intx_pin_to_irq(void *opaque, int pirq_pin);
|
||||||
void ich9_lpc_pm_init(PCIDevice *pci_lpc);
|
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);
|
I2CBus *ich9_smb_init(PCIBus *bus, int devfn, uint32_t smb_io_base);
|
||||||
|
|
||||||
#define ICH9_CC_SIZE (16 * 1024) /* 16KB */
|
#define ICH9_CC_SIZE (16 * 1024) /* 16KB */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user