diff options
Diffstat (limited to 'drivers/pci/hotplug/pnv_php.c')
-rw-r--r-- | drivers/pci/hotplug/pnv_php.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/pci/hotplug/pnv_php.c b/drivers/pci/hotplug/pnv_php.c index 6c2e8d7307c6..3276a5e4c430 100644 --- a/drivers/pci/hotplug/pnv_php.c +++ b/drivers/pci/hotplug/pnv_php.c | |||
@@ -538,9 +538,8 @@ static struct hotplug_slot_ops php_slot_ops = { | |||
538 | .disable_slot = pnv_php_disable_slot, | 538 | .disable_slot = pnv_php_disable_slot, |
539 | }; | 539 | }; |
540 | 540 | ||
541 | static void pnv_php_release(struct hotplug_slot *slot) | 541 | static void pnv_php_release(struct pnv_php_slot *php_slot) |
542 | { | 542 | { |
543 | struct pnv_php_slot *php_slot = slot->private; | ||
544 | unsigned long flags; | 543 | unsigned long flags; |
545 | 544 | ||
546 | /* Remove from global or child list */ | 545 | /* Remove from global or child list */ |
@@ -596,7 +595,6 @@ static struct pnv_php_slot *pnv_php_alloc_slot(struct device_node *dn) | |||
596 | php_slot->power_state_check = false; | 595 | php_slot->power_state_check = false; |
597 | php_slot->slot.ops = &php_slot_ops; | 596 | php_slot->slot.ops = &php_slot_ops; |
598 | php_slot->slot.info = &php_slot->slot_info; | 597 | php_slot->slot.info = &php_slot->slot_info; |
599 | php_slot->slot.release = pnv_php_release; | ||
600 | php_slot->slot.private = php_slot; | 598 | php_slot->slot.private = php_slot; |
601 | 599 | ||
602 | INIT_LIST_HEAD(&php_slot->children); | 600 | INIT_LIST_HEAD(&php_slot->children); |
@@ -924,6 +922,7 @@ static void pnv_php_unregister_one(struct device_node *dn) | |||
924 | 922 | ||
925 | php_slot->state = PNV_PHP_STATE_OFFLINE; | 923 | php_slot->state = PNV_PHP_STATE_OFFLINE; |
926 | pci_hp_deregister(&php_slot->slot); | 924 | pci_hp_deregister(&php_slot->slot); |
925 | pnv_php_release(php_slot); | ||
927 | pnv_php_put_slot(php_slot); | 926 | pnv_php_put_slot(php_slot); |
928 | } | 927 | } |
929 | 928 | ||