[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 08/16] pseries: Remove PCI device from PCI host bridge
From: |
Alexander Graf |
Subject: |
[Qemu-ppc] [PATCH 08/16] pseries: Remove PCI device from PCI host bridge code |
Date: |
Thu, 15 Mar 2012 13:14:14 +0100 |
From: Alexey Kardashevskiy <address@hidden>
The sPAPR PCI code defines a PCI device "spapr-pci-host-bridge-pci" which
is never used. This came over from the earlier bridge driver we used as
a template. Some other bridges appear on their own PCI bus as a device,
but that is not true of pSeries bridges, which are pure host to PCI with
no visible presence on the PCI side.
Signed-off-by: Alexey Kardashevskiy <address@hidden>
Signed-off-by: David Gibson <address@hidden>
Signed-off-by: Alexander Graf <address@hidden>
---
hw/spapr_pci.c | 20 --------------------
1 files changed, 0 insertions(+), 20 deletions(-)
diff --git a/hw/spapr_pci.c b/hw/spapr_pci.c
index 3d5e50a..c06afac 100644
--- a/hw/spapr_pci.c
+++ b/hw/spapr_pci.c
@@ -202,25 +202,6 @@ static int spapr_phb_init(SysBusDevice *s)
return 0;
}
-static int spapr_main_pci_host_init(PCIDevice *d)
-{
- return 0;
-}
-
-static void spapr_main_pci_host_class_init(ObjectClass *klass, void *data)
-{
- PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
-
- k->init = spapr_main_pci_host_init;
-}
-
-static TypeInfo spapr_main_pci_host_info = {
- .name = "spapr-pci-host-bridge-pci",
- .parent = TYPE_PCI_DEVICE,
- .instance_size = sizeof(PCIDevice),
- .class_init = spapr_main_pci_host_class_init,
-};
-
static void spapr_phb_class_init(ObjectClass *klass, void *data)
{
SysBusDeviceClass *sdc = SYS_BUS_DEVICE_CLASS(klass);
@@ -238,7 +219,6 @@ static TypeInfo spapr_phb_info = {
static void spapr_register_types(void)
{
type_register_static(&spapr_phb_info);
- type_register_static(&spapr_main_pci_host_info);
}
type_init(spapr_register_types)
--
1.6.0.2
- [Qemu-ppc] [PULL 00/16] ppc patch queue 2012-03-15, Alexander Graf, 2012/03/15
- [Qemu-ppc] [PATCH 01/16] Bad zero comparison for sas_ss_flags on powerpc, Alexander Graf, 2012/03/15
- [Qemu-ppc] [PATCH 03/16] ppc: Add missing 'static' to spin_rw_ops, Alexander Graf, 2012/03/15
- [Qemu-ppc] [PATCH 02/16] PPC: 405: Fix ppc405ep initialization, Alexander Graf, 2012/03/15
- [Qemu-ppc] [PATCH 13/16] kvm: Comparison with ioctl number macros needs to be unsigned, Alexander Graf, 2012/03/15
- [Qemu-ppc] [PATCH 15/16] pseries: Configure PCI bridge using properties, Alexander Graf, 2012/03/15
- [Qemu-ppc] [PATCH 08/16] pseries: Remove PCI device from PCI host bridge code,
Alexander Graf <=
- [Qemu-ppc] [PATCH 16/16] PPC: Fix openpic with relative memregions, Alexander Graf, 2012/03/15
- [Qemu-ppc] [PATCH 09/16] PPC: Add PIR register to POWER7 CPU, Alexander Graf, 2012/03/15
- [Qemu-ppc] [PATCH 12/16] ppc: Correctly define POWERPC_INSNS2_DEFAULT, Alexander Graf, 2012/03/15
- [Qemu-ppc] [PATCH 11/16] pseries: Add support for level interrupts to XICS, Alexander Graf, 2012/03/15
- [Qemu-ppc] [PATCH 04/16] pseries: Don't try to munmap() a malloc()ed TCE table, Alexander Graf, 2012/03/15
- [Qemu-ppc] [PATCH 05/16] PPC64: Add support for ldbrx and stdbrx instructions, Alexander Graf, 2012/03/15
- [Qemu-ppc] [PATCH 06/16] pseries: Update SLOF firmware image, Alexander Graf, 2012/03/15
- [Qemu-ppc] [PATCH 07/16] pseries: Remove unused constant from PCI code, Alexander Graf, 2012/03/15
- [Qemu-ppc] [PATCH 14/16] PPC: KVM: Synchronize regs on CPU dump, Alexander Graf, 2012/03/15
- [Qemu-ppc] [PATCH 10/16] PPC: Fix large page support in TCG, Alexander Graf, 2012/03/15