PCI: acpiphp: Use common pci_stop_and_remove_bus_device()
Use pci_stop_and_remove_bus_device() like most other hotplug drivers rather than stopping and removing separately. 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:
parent
57fd9a4df5
commit
34e548431a
1 changed files with 1 additions and 2 deletions
|
@ -920,8 +920,7 @@ static int disable_device(struct acpiphp_slot *slot)
|
||||||
* here.
|
* here.
|
||||||
*/
|
*/
|
||||||
while ((pdev = dev_in_slot(slot))) {
|
while ((pdev = dev_in_slot(slot))) {
|
||||||
pci_stop_bus_device(pdev);
|
pci_stop_and_remove_bus_device(pdev);
|
||||||
__pci_remove_bus_device(pdev);
|
|
||||||
pci_dev_put(pdev);
|
pci_dev_put(pdev);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue