aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/pciehp_pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/hotplug/pciehp_pci.c')
-rw-r--r--drivers/pci/hotplug/pciehp_pci.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/pci/hotplug/pciehp_pci.c b/drivers/pci/hotplug/pciehp_pci.c
index 02e24d63b3ee..2e5f6b816da6 100644
--- a/drivers/pci/hotplug/pciehp_pci.c
+++ b/drivers/pci/hotplug/pciehp_pci.c
@@ -71,7 +71,8 @@ int pciehp_configure_device(struct slot *p_slot)
71 if (dev) { 71 if (dev) {
72 ctrl_err(ctrl, "Device %s already exists " 72 ctrl_err(ctrl, "Device %s already exists "
73 "at %04x:%02x:%02x, cannot hot-add\n", pci_name(dev), 73 "at %04x:%02x:%02x, cannot hot-add\n", pci_name(dev),
74 pci_domain_nr(parent), p_slot->bus, p_slot->device); 74 pci_domain_nr(parent), parent->number,
75 p_slot->device);
75 pci_dev_put(dev); 76 pci_dev_put(dev);
76 return -EINVAL; 77 return -EINVAL;
77 } 78 }
@@ -116,7 +117,8 @@ int pciehp_unconfigure_device(struct slot *p_slot)
116 struct controller *ctrl = p_slot->ctrl; 117 struct controller *ctrl = p_slot->ctrl;
117 118
118 ctrl_dbg(ctrl, "%s: domain:bus:dev = %04x:%02x:%02x\n", 119 ctrl_dbg(ctrl, "%s: domain:bus:dev = %04x:%02x:%02x\n",
119 __func__, pci_domain_nr(parent), p_slot->bus, p_slot->device); 120 __func__, pci_domain_nr(parent), parent->number,
121 p_slot->device);
120 ret = p_slot->hpc_ops->get_adapter_status(p_slot, &presence); 122 ret = p_slot->hpc_ops->get_adapter_status(p_slot, &presence);
121 if (ret) 123 if (ret)
122 presence = 0; 124 presence = 0;