aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/pciehp_ctrl.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/hotplug/pciehp_ctrl.c')
-rw-r--r--drivers/pci/hotplug/pciehp_ctrl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pci/hotplug/pciehp_ctrl.c b/drivers/pci/hotplug/pciehp_ctrl.c
index b3c9ae580d9..c3e5ca57af7 100644
--- a/drivers/pci/hotplug/pciehp_ctrl.c
+++ b/drivers/pci/hotplug/pciehp_ctrl.c
@@ -208,7 +208,7 @@ static int board_added(struct slot *p_slot)
208{ 208{
209 int retval = 0; 209 int retval = 0;
210 struct controller *ctrl = p_slot->ctrl; 210 struct controller *ctrl = p_slot->ctrl;
211 struct pci_bus *parent = ctrl->pci_dev->subordinate; 211 struct pci_bus *parent = ctrl->pcie->port->subordinate;
212 212
213 if (POWER_CTRL(ctrl)) { 213 if (POWER_CTRL(ctrl)) {
214 /* Power on slot */ 214 /* Power on slot */
@@ -312,8 +312,8 @@ static void pciehp_power_thread(struct work_struct *work)
312 mutex_unlock(&p_slot->lock); 312 mutex_unlock(&p_slot->lock);
313 ctrl_dbg(p_slot->ctrl, 313 ctrl_dbg(p_slot->ctrl,
314 "Disabling domain:bus:device=%04x:%02x:00\n", 314 "Disabling domain:bus:device=%04x:%02x:00\n",
315 pci_domain_nr(p_slot->ctrl->pci_dev->subordinate), 315 pci_domain_nr(p_slot->ctrl->pcie->port->subordinate),
316 p_slot->ctrl->pci_dev->subordinate->number); 316 p_slot->ctrl->pcie->port->subordinate->number);
317 pciehp_disable_slot(p_slot); 317 pciehp_disable_slot(p_slot);
318 mutex_lock(&p_slot->lock); 318 mutex_lock(&p_slot->lock);
319 p_slot->state = STATIC_STATE; 319 p_slot->state = STATIC_STATE;