diff options
Diffstat (limited to 'drivers/pci/hotplug/rpaphp_core.c')
-rw-r--r-- | drivers/pci/hotplug/rpaphp_core.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/pci/hotplug/rpaphp_core.c b/drivers/pci/hotplug/rpaphp_core.c index c830ff0acdc..cf075c34b57 100644 --- a/drivers/pci/hotplug/rpaphp_core.c +++ b/drivers/pci/hotplug/rpaphp_core.c | |||
@@ -426,8 +426,11 @@ static int disable_slot(struct hotplug_slot *hotplug_slot) | |||
426 | 426 | ||
427 | dbg("DISABLING SLOT %s\n", slot->name); | 427 | dbg("DISABLING SLOT %s\n", slot->name); |
428 | down(&rpaphp_sem); | 428 | down(&rpaphp_sem); |
429 | retval = rpaphp_unconfig_pci_adapter(slot); | 429 | retval = rpaphp_unconfig_pci_adapter(slot->bus); |
430 | up(&rpaphp_sem); | 430 | up(&rpaphp_sem); |
431 | slot->state = NOT_CONFIGURED; | ||
432 | info("%s: devices in slot[%s] unconfigured.\n", __FUNCTION__, | ||
433 | slot->name); | ||
431 | exit: | 434 | exit: |
432 | dbg("%s - Exit: rc[%d]\n", __FUNCTION__, retval); | 435 | dbg("%s - Exit: rc[%d]\n", __FUNCTION__, retval); |
433 | return retval; | 436 | return retval; |