Skip to content

Commit

Permalink
PCI: make acpihp use __pci_remove_bus_device instead
Browse files Browse the repository at this point in the history
pci_stop_bus_device gets called before in the same loop.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
  • Loading branch information
Yinghai Lu authored and Jesse Barnes committed Feb 27, 2012
1 parent 6b22cf3 commit f6330c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pci/hotplug/acpiphp_glue.c
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,7 @@ static int disable_device(struct acpiphp_slot *slot)
disable_bridges(pdev->subordinate);
pci_disable_device(pdev);
}
pci_stop_and_remove_bus_device(pdev);
__pci_remove_bus_device(pdev);
pci_dev_put(pdev);
}
}
Expand Down

0 comments on commit f6330c3

Please sign in to comment.