diff options
Diffstat (limited to 'drivers/pci/probe.c')
-rw-r--r-- | drivers/pci/probe.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index c86c8638d3c4..04796c056d12 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c | |||
@@ -2024,6 +2024,24 @@ EXPORT_SYMBOL(pci_scan_slot); | |||
2024 | EXPORT_SYMBOL(pci_scan_bridge); | 2024 | EXPORT_SYMBOL(pci_scan_bridge); |
2025 | EXPORT_SYMBOL_GPL(pci_scan_child_bus); | 2025 | EXPORT_SYMBOL_GPL(pci_scan_child_bus); |
2026 | 2026 | ||
2027 | /* | ||
2028 | * pci_rescan_bus(), pci_rescan_bus_bridge_resize() and PCI device removal | ||
2029 | * routines should always be executed under this mutex. | ||
2030 | */ | ||
2031 | static DEFINE_MUTEX(pci_rescan_remove_lock); | ||
2032 | |||
2033 | void pci_lock_rescan_remove(void) | ||
2034 | { | ||
2035 | mutex_lock(&pci_rescan_remove_lock); | ||
2036 | } | ||
2037 | EXPORT_SYMBOL_GPL(pci_lock_rescan_remove); | ||
2038 | |||
2039 | void pci_unlock_rescan_remove(void) | ||
2040 | { | ||
2041 | mutex_unlock(&pci_rescan_remove_lock); | ||
2042 | } | ||
2043 | EXPORT_SYMBOL_GPL(pci_unlock_rescan_remove); | ||
2044 | |||
2027 | static int __init pci_sort_bf_cmp(const struct device *d_a, const struct device *d_b) | 2045 | static int __init pci_sort_bf_cmp(const struct device *d_a, const struct device *d_b) |
2028 | { | 2046 | { |
2029 | const struct pci_dev *a = to_pci_dev(d_a); | 2047 | const struct pci_dev *a = to_pci_dev(d_a); |