Skip to content

Commit

Permalink
[PATCH] powerpc/PCI hotplug: remove remove_bus_device()
Browse files Browse the repository at this point in the history
The function rpaphp_eeh_remove_bus_device() is a dupe of
eeh_remove_bus_device(). Remove it.

Signed-off-by: Linas Vepstas <linas@austin.ibm.com>
Acked-by: John Rose <johnrose@austin.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
linas@austin.ibm.com authored and Greg Kroah-Hartman committed Feb 1, 2006
1 parent 7fec77e commit 8a85a70
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions drivers/pci/hotplug/rpaphp_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,30 +116,12 @@ static void print_slot_pci_funcs(struct pci_bus *bus)
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;
Expand Down

0 comments on commit 8a85a70

Please sign in to comment.