提交 d563e2cc 编写于 作者: B Bjorn Helgaas

PCI: Rename local variables to conventional names

"bus" is the conventional name for a "struct pci_bus *" variable.
Tested-by: NYijing Wang <wangyijing@huawei.com>
Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
Acked-by: NYinghai Lu <yinghai@kernel.org>
上级 7990681a
......@@ -43,19 +43,19 @@ static void pci_destroy_dev(struct pci_dev *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);
list_del(&pci_bus->node);
pci_bus_release_busn_res(pci_bus);
list_del(&bus->node);
pci_bus_release_busn_res(bus);
up_write(&pci_bus_sem);
if (!pci_bus->is_added)
if (!bus->is_added)
return;
pci_remove_legacy_files(pci_bus);
device_unregister(&pci_bus->dev);
pci_remove_legacy_files(bus);
device_unregister(&bus->dev);
}
EXPORT_SYMBOL(pci_remove_bus);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册