Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 283353
b: refs/heads/master
c: 79cc960
h: refs/heads/master
i:
  283351: f87b696
v: v3
  • Loading branch information
Yinghai Lu authored and Jesse Barnes committed Jan 6, 2012
1 parent 5c16536 commit a1e86f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 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: ca3671a83389eea1458929d22c66a69e955bfb07
refs/heads/master: 79cc9601c3e42b4f0650fe7e69132ebce7ab48f9
10 changes: 7 additions & 3 deletions trunk/drivers/pci/remove.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,8 @@ EXPORT_SYMBOL(pci_remove_bus);
* device lists, remove the /proc entry, and notify userspace
* (/sbin/hotplug).
*/
void pci_remove_bus_device(struct pci_dev *dev)
static void __pci_remove_bus_device(struct pci_dev *dev)
{
pci_stop_bus_device(dev);
if (dev->subordinate) {
struct pci_bus *b = dev->subordinate;

Expand All @@ -102,6 +101,11 @@ void pci_remove_bus_device(struct pci_dev *dev)

pci_destroy_dev(dev);
}
void pci_remove_bus_device(struct pci_dev *dev)
{
pci_stop_bus_device(dev);
__pci_remove_bus_device(dev);
}

/**
* pci_remove_behind_bridge - remove all devices behind a PCI bridge
Expand All @@ -117,7 +121,7 @@ void pci_remove_behind_bridge(struct pci_dev *dev)

if (dev->subordinate)
list_for_each_safe(l, n, &dev->subordinate->devices)
pci_remove_bus_device(pci_dev_b(l));
__pci_remove_bus_device(pci_dev_b(l));
}

static void pci_stop_bus_devices(struct pci_bus *bus)
Expand Down

0 comments on commit a1e86f9

Please sign in to comment.