From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:35441) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2DaD-0007sw-QG for qemu-devel@nongnu.org; Mon, 27 Feb 2012 22:18:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S2Da8-0000OH-Pq for qemu-devel@nongnu.org; Mon, 27 Feb 2012 22:18:33 -0500 From: David Gibson Date: Tue, 28 Feb 2012 14:18:12 +1100 Message-Id: <1330399093-20384-7-git-send-email-david@gibson.dropbear.id.au> In-Reply-To: <1330399093-20384-1-git-send-email-david@gibson.dropbear.id.au> References: <1330399093-20384-1-git-send-email-david@gibson.dropbear.id.au> Subject: [Qemu-devel] [PATCH 6/7] pseries: Remove PCI device from PCI host bridge code List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: agraf@suse.de Cc: Alexey Kardashevskiy , qemu-ppc@nongnu.org, qemu-devel@nongnu.org, anthony@codemonkey.ws, David Gibson From: Alexey Kardashevskiy 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 Signed-off-by: David Gibson --- 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 dafcd0e..b0254ee 100644 --- a/hw/spapr_pci.c +++ b/hw/spapr_pci.c @@ -183,25 +183,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); @@ -219,7 +200,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.7.9