diff options
author | Yinghai Lu <yinghai@kernel.org> | 2012-10-30 14:31:38 -0600 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2012-11-03 16:26:37 -0600 |
commit | cdfcc572be0a8b423cecfb4ab5fd735fafe9c54a (patch) | |
tree | df188f735b592a2a359969d451ed3dc51ac6e55a /include/linux/pci.h | |
parent | 62a08c5a3173c4462239804b959c0d29dc74493b (diff) |
PCI: Add pci_stop_and_remove_root_bus()
It supports both PCI root bus and PCI bus under PCI bridge.
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r-- | include/linux/pci.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index f543eb3b1c0..786094254d5 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -712,6 +712,8 @@ extern struct pci_dev *pci_dev_get(struct pci_dev *dev); extern void pci_dev_put(struct pci_dev *dev); extern void pci_remove_bus(struct pci_bus *b); extern void pci_stop_and_remove_bus_device(struct pci_dev *dev); +void pci_stop_root_bus(struct pci_bus *bus); +void pci_remove_root_bus(struct pci_bus *bus); void pci_setup_cardbus(struct pci_bus *bus); extern void pci_sort_breadthfirst(void); #define dev_is_pci(d) ((d)->bus == &pci_bus_type) |