diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2012-08-17 19:57:48 +0200 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2012-08-22 19:31:48 +0200 |
commit | 282e1d655fe7c7c2e6b0dd8166c4c6b7c2a1219b (patch) | |
tree | 9890411229a7f8b7314ddbf44e33554fa1b360b8 /drivers/pci/rom.c | |
parent | PCI: Fold stop and remove helpers into their callers (diff) | |
download | linux-282e1d655fe7c7c2e6b0dd8166c4c6b7c2a1219b.tar.xz linux-282e1d655fe7c7c2e6b0dd8166c4c6b7c2a1219b.zip |
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>
Diffstat (limited to 'drivers/pci/rom.c')
0 files changed, 0 insertions, 0 deletions