Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19254
b: refs/heads/master
c: 8a85a70
h: refs/heads/master
v: v3
  • Loading branch information
linas@austin.ibm.com authored and Greg Kroah-Hartman committed Feb 1, 2006
1 parent 775c14a commit 1fc6c35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7fec77e4793f307b30846a3d4015d329ffc0b685
refs/heads/master: 8a85a70db8c65fd1703b4597f72fe6ee25642234
20 changes: 1 addition & 19 deletions trunk/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 1fc6c35

Please sign in to comment.