Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 294784
b: refs/heads/master
c: 6754b9e
h: refs/heads/master
v: v3
  • Loading branch information
Yinghai Lu authored and Jesse Barnes committed Feb 27, 2012
1 parent 696bf24 commit 8ea9dc5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 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: 210647af897af8ef2d00828aa2a6b1b42206aae6
refs/heads/master: 6754b9e9c33502223db066de50dda8a876f70c2c
7 changes: 4 additions & 3 deletions trunk/drivers/pci/remove.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,15 @@ static void pci_stop_behind_bridge(struct pci_dev *dev)
}

/**
* pci_remove_behind_bridge - remove all devices behind a PCI bridge
* pci_stop_and_remove_behind_bridge - stop and remove all devices behind
* a PCI bridge
* @dev: PCI bridge device
*
* Remove all devices on the bus, except for the parent bridge.
* This also removes any child buses, and any devices they may
* contain in a depth-first manner.
*/
void pci_remove_behind_bridge(struct pci_dev *dev)
void pci_stop_and_remove_behind_bridge(struct pci_dev *dev)
{
pci_stop_behind_bridge(dev);
__pci_remove_behind_bridge(dev);
Expand Down Expand Up @@ -175,5 +176,5 @@ void pci_stop_bus_device(struct pci_dev *dev)
}

EXPORT_SYMBOL(pci_stop_and_remove_bus_device);
EXPORT_SYMBOL(pci_remove_behind_bridge);
EXPORT_SYMBOL(pci_stop_and_remove_behind_bridge);
EXPORT_SYMBOL_GPL(pci_stop_bus_device);
2 changes: 1 addition & 1 deletion trunk/drivers/pcmcia/cardbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,5 @@ void cb_free(struct pcmcia_socket *s)
struct pci_dev *bridge = s->cb_dev;

if (bridge)
pci_remove_behind_bridge(bridge);
pci_stop_and_remove_behind_bridge(bridge);
}
2 changes: 1 addition & 1 deletion trunk/include/linux/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@ int __must_check __pci_register_driver(struct pci_driver *, struct module *,
__pci_register_driver(driver, THIS_MODULE, KBUILD_MODNAME)

void pci_unregister_driver(struct pci_driver *dev);
void pci_remove_behind_bridge(struct pci_dev *dev);
void pci_stop_and_remove_behind_bridge(struct pci_dev *dev);
struct pci_driver *pci_dev_driver(const struct pci_dev *dev);
int pci_add_dynid(struct pci_driver *drv,
unsigned int vendor, unsigned int device,
Expand Down

0 comments on commit 8ea9dc5

Please sign in to comment.