Skip to content

Commit 2e37975

Browse files
author
Fox Snowpatch
committed
1 parent 7170d5d commit 2e37975

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

drivers/pci/hotplug/pnv_php.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -801,6 +801,9 @@ static struct pnv_php_slot *pnv_php_alloc_slot(struct device_node *dn)
801801
return NULL;
802802
}
803803

804+
php_slot->bus = bus;
805+
php_slot->pdev = bus->self;
806+
804807
/* Allocate workqueue for this slot's interrupt handling */
805808
php_slot->wq = alloc_workqueue("pciehp-%s", 0, 0, php_slot->name);
806809
if (!php_slot->wq) {
@@ -818,8 +821,6 @@ static struct pnv_php_slot *pnv_php_alloc_slot(struct device_node *dn)
818821
kref_init(&php_slot->kref);
819822
php_slot->state = PNV_PHP_STATE_INITIALIZED;
820823
php_slot->dn = dn;
821-
php_slot->pdev = bus->self;
822-
php_slot->bus = bus;
823824
php_slot->id = id;
824825
php_slot->power_state_check = false;
825826
php_slot->slot.ops = &php_slot_ops;

0 commit comments

Comments
 (0)