PCI: Rename local variables to conventional names

"bus" is the conventional name for a "struct pci_bus *" variable.

Tested-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Yinghai Lu <yinghai@kernel.org>
This commit is contained in:
Bjorn Helgaas 2012-08-16 20:43:11 -06:00
parent 7990681ad8
commit d563e2ccc8
1 changed files with 7 additions and 7 deletions

View File

@ -43,19 +43,19 @@ static void pci_destroy_dev(struct pci_dev *dev)
pci_dev_put(dev); pci_dev_put(dev);
} }
void pci_remove_bus(struct pci_bus *pci_bus) void pci_remove_bus(struct pci_bus *bus)
{ {
pci_proc_detach_bus(pci_bus); pci_proc_detach_bus(bus);
down_write(&pci_bus_sem); down_write(&pci_bus_sem);
list_del(&pci_bus->node); list_del(&bus->node);
pci_bus_release_busn_res(pci_bus); pci_bus_release_busn_res(bus);
up_write(&pci_bus_sem); up_write(&pci_bus_sem);
if (!pci_bus->is_added) if (!bus->is_added)
return; return;
pci_remove_legacy_files(pci_bus); pci_remove_legacy_files(bus);
device_unregister(&pci_bus->dev); device_unregister(&bus->dev);
} }
EXPORT_SYMBOL(pci_remove_bus); EXPORT_SYMBOL(pci_remove_bus);