From linas@austin.ibm.com Thu Jan 12 16:24:28 2006 From: linas@austin.ibm.com Date: Thu, 12 Jan 2006 18:24:27 -0600 To: Greg KH , akpm@osdl.org Cc: Paul Mackerras Subject: [PATCH 4/9] powerpc/PCI hotplug: remove remove_bus_device() Message-ID: <20060113002427.GB26221@austin.ibm.com> Content-Disposition: inline The function rpaphp_eeh_remove_bus_device() is a dupe of eeh_remove_bus_device(). Remove it. Signed-off-by: Linas Vepstas Acked-by: John Rose Signed-off-by: Greg Kroah-Hartman --- drivers/pci/hotplug/rpaphp_pci.c | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) --- gregkh-2.6.orig/drivers/pci/hotplug/rpaphp_pci.c +++ gregkh-2.6/drivers/pci/hotplug/rpaphp_pci.c @@ -116,30 +116,12 @@ static void print_slot_pci_funcs(struct return; } -static void rpaphp_eeh_remove_bus_device(struct pci_dev *dev) -{ - eeh_remove_device(dev); - if (dev->hdr_type == PCI_HEADER_TYPE_BRIDGE) { - struct pci_bus *bus = dev->subordinate; - struct list_head *ln; - if (!bus) - return; - for (ln = bus->devices.next; ln != &bus->devices; ln = ln->next) { - struct pci_dev *pdev = pci_dev_b(ln); - if (pdev) - rpaphp_eeh_remove_bus_device(pdev); - } - - } - return; -} - int rpaphp_unconfig_pci_adapter(struct pci_bus *bus) { struct pci_dev *dev, *tmp; list_for_each_entry_safe(dev, tmp, &bus->devices, bus_list) { - rpaphp_eeh_remove_bus_device(dev); + eeh_remove_bus_device(dev); pci_remove_bus_device(dev); } return 0;