Browse Source

PCI: make acpihp use __pci_remove_bus_device instead

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>
Yinghai Lu 13 years ago
parent
commit
f6330c3178
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/pci/hotplug/acpiphp_glue.c

+ 1 - 1
drivers/pci/hotplug/acpiphp_glue.c

@@ -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);
 		}
 	}