aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/hotplug')
-rw-r--r--drivers/pci/hotplug/acpiphp_glue.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pci/hotplug/acpiphp_glue.c b/drivers/pci/hotplug/acpiphp_glue.c
index c1001ad81ad4..d36732cd4bad 100644
--- a/drivers/pci/hotplug/acpiphp_glue.c
+++ b/drivers/pci/hotplug/acpiphp_glue.c
@@ -1129,6 +1129,9 @@ static int disable_device(struct acpiphp_slot *slot)
1129 func->bridge = NULL; 1129 func->bridge = NULL;
1130 } 1130 }
1131 1131
1132 if (func->pci_dev)
1133 pci_stop_bus_device(func->pci_dev);
1134
1132 acpiphp_bus_trim(func->handle); 1135 acpiphp_bus_trim(func->handle);
1133 /* try to remove anyway. 1136 /* try to remove anyway.
1134 * acpiphp_bus_add might have been failed */ 1137 * acpiphp_bus_add might have been failed */