diff options
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/hotplug/pciehp_core.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/pci/hotplug/pciehp_core.c b/drivers/pci/hotplug/pciehp_core.c index d0fb56936911..3677495c4f91 100644 --- a/drivers/pci/hotplug/pciehp_core.c +++ b/drivers/pci/hotplug/pciehp_core.c | |||
@@ -405,7 +405,7 @@ static int pciehp_probe(struct pcie_device *dev, const struct pcie_port_service_ | |||
405 | dbg("%s: controller initialization failed\n", PCIE_MODULE_NAME); | 405 | dbg("%s: controller initialization failed\n", PCIE_MODULE_NAME); |
406 | goto err_out_none; | 406 | goto err_out_none; |
407 | } | 407 | } |
408 | pci_set_drvdata(pdev, ctrl); | 408 | set_service_data(dev, ctrl); |
409 | 409 | ||
410 | /* Setup the slot information structures */ | 410 | /* Setup the slot information structures */ |
411 | rc = init_slots(ctrl); | 411 | rc = init_slots(ctrl); |
@@ -445,8 +445,7 @@ err_out_none: | |||
445 | 445 | ||
446 | static void pciehp_remove (struct pcie_device *dev) | 446 | static void pciehp_remove (struct pcie_device *dev) |
447 | { | 447 | { |
448 | struct pci_dev *pdev = dev->port; | 448 | struct controller *ctrl = get_service_data(dev); |
449 | struct controller *ctrl = pci_get_drvdata(pdev); | ||
450 | 449 | ||
451 | cleanup_slots(ctrl); | 450 | cleanup_slots(ctrl); |
452 | ctrl->hpc_ops->release_ctlr(ctrl); | 451 | ctrl->hpc_ops->release_ctlr(ctrl); |
@@ -463,8 +462,7 @@ static int pciehp_resume (struct pcie_device *dev) | |||
463 | { | 462 | { |
464 | printk("%s ENTRY\n", __func__); | 463 | printk("%s ENTRY\n", __func__); |
465 | if (pciehp_force) { | 464 | if (pciehp_force) { |
466 | struct pci_dev *pdev = dev->port; | 465 | struct controller *ctrl = get_service_data(dev); |
467 | struct controller *ctrl = pci_get_drvdata(pdev); | ||
468 | struct slot *t_slot; | 466 | struct slot *t_slot; |
469 | u8 status; | 467 | u8 status; |
470 | 468 | ||