PCI: Stop and remove devices in one pass
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 17 Aug 2012 17:57:48 +0000 (11:57 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 22 Aug 2012 17:31:48 +0000 (11:31 -0600)
commit282e1d655fe7c7c2e6b0dd8166c4c6b7c2a1219b
tree9890411229a7f8b7314ddbf44e33554fa1b360b8
parent2ed168eeb3edec029aa0eca5cb981d6376f931f9
PCI: Stop and remove devices in one pass

Previously, when we removed a PCI device, we made two passes over the
hierarchy rooted at the device.  In the first pass, we stopped all
the devices, and in the second, we removed them.

This patch combines the two passes into one so that we remove a device as
soon as it and all its children have been stopped.

Note that we previously stopped devices in reverse order and removed them
in forward order.  Now we stop and remove them in reverse order.

Tested-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Yinghai Lu <yinghai@kernel.org>
drivers/pci/remove.c
This page took 0.026444 seconds and 5 git commands to generate.