We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7170d5d commit 2e37975Copy full SHA for 2e37975
1 file changed
drivers/pci/hotplug/pnv_php.c
@@ -801,6 +801,9 @@ static struct pnv_php_slot *pnv_php_alloc_slot(struct device_node *dn)
801
return NULL;
802
}
803
804
+ php_slot->bus = bus;
805
+ php_slot->pdev = bus->self;
806
+
807
/* Allocate workqueue for this slot's interrupt handling */
808
php_slot->wq = alloc_workqueue("pciehp-%s", 0, 0, php_slot->name);
809
if (!php_slot->wq) {
@@ -818,8 +821,6 @@ static struct pnv_php_slot *pnv_php_alloc_slot(struct device_node *dn)
818
821
kref_init(&php_slot->kref);
819
822
php_slot->state = PNV_PHP_STATE_INITIALIZED;
820
823
php_slot->dn = dn;
- php_slot->pdev = bus->self;
- php_slot->bus = bus;
824
php_slot->id = id;
825
php_slot->power_state_check = false;
826
php_slot->slot.ops = &php_slot_ops;
0 commit comments