Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 34e54843 authored by Bjorn Helgaas's avatar Bjorn Helgaas
Browse files

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: default avatarYijing Wang <wangyijing@huawei.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Acked-by: default avatarYinghai Lu <yinghai@kernel.org>
parent 57fd9a4d
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -920,8 +920,7 @@ static int disable_device(struct acpiphp_slot *slot)
	 * here.
	 */
	while ((pdev = dev_in_slot(slot))) {
		pci_stop_bus_device(pdev);
		__pci_remove_bus_device(pdev);
		pci_stop_and_remove_bus_device(pdev);
		pci_dev_put(pdev);
	}