diff options
Diffstat (limited to 'drivers/pci/slot.c')
| -rw-r--r-- | drivers/pci/slot.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/drivers/pci/slot.c b/drivers/pci/slot.c index 448ca562d1f8..7dd62fa9d0bd 100644 --- a/drivers/pci/slot.c +++ b/drivers/pci/slot.c | |||
| @@ -320,32 +320,6 @@ err: | |||
| 320 | EXPORT_SYMBOL_GPL(pci_create_slot); | 320 | EXPORT_SYMBOL_GPL(pci_create_slot); |
| 321 | 321 | ||
| 322 | /** | 322 | /** |
| 323 | * pci_renumber_slot - update %struct pci_slot -> number | ||
| 324 | * @slot: &struct pci_slot to update | ||
| 325 | * @slot_nr: new number for slot | ||
| 326 | * | ||
| 327 | * The primary purpose of this interface is to allow callers who earlier | ||
| 328 | * created a placeholder slot in pci_create_slot() by passing a -1 as | ||
| 329 | * slot_nr, to update their %struct pci_slot with the correct @slot_nr. | ||
| 330 | */ | ||
| 331 | void pci_renumber_slot(struct pci_slot *slot, int slot_nr) | ||
| 332 | { | ||
| 333 | struct pci_slot *tmp; | ||
| 334 | |||
| 335 | down_write(&pci_bus_sem); | ||
| 336 | |||
| 337 | list_for_each_entry(tmp, &slot->bus->slots, list) { | ||
| 338 | WARN_ON(tmp->number == slot_nr); | ||
| 339 | goto out; | ||
| 340 | } | ||
| 341 | |||
| 342 | slot->number = slot_nr; | ||
| 343 | out: | ||
| 344 | up_write(&pci_bus_sem); | ||
| 345 | } | ||
| 346 | EXPORT_SYMBOL_GPL(pci_renumber_slot); | ||
| 347 | |||
| 348 | /** | ||
| 349 | * pci_destroy_slot - decrement refcount for physical PCI slot | 323 | * pci_destroy_slot - decrement refcount for physical PCI slot |
| 350 | * @slot: struct pci_slot to decrement | 324 | * @slot: struct pci_slot to decrement |
| 351 | * | 325 | * |
