aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/pci/hotplug/pciehp_pci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pci/hotplug/pciehp_pci.c b/drivers/pci/hotplug/pciehp_pci.c
index 922b1831c680..854aaea09e4d 100644
--- a/drivers/pci/hotplug/pciehp_pci.c
+++ b/drivers/pci/hotplug/pciehp_pci.c
@@ -225,6 +225,7 @@ int pciehp_configure_device(struct slot *p_slot)
225 if ((dev->class >> 16) == PCI_BASE_CLASS_DISPLAY) { 225 if ((dev->class >> 16) == PCI_BASE_CLASS_DISPLAY) {
226 err("Cannot hot-add display device %s\n", 226 err("Cannot hot-add display device %s\n",
227 pci_name(dev)); 227 pci_name(dev));
228 pci_dev_put(dev);
228 continue; 229 continue;
229 } 230 }
230 if ((dev->hdr_type == PCI_HEADER_TYPE_BRIDGE) || 231 if ((dev->hdr_type == PCI_HEADER_TYPE_BRIDGE) ||
@@ -232,6 +233,7 @@ int pciehp_configure_device(struct slot *p_slot)
232 pciehp_add_bridge(dev); 233 pciehp_add_bridge(dev);
233 } 234 }
234 program_fw_provided_values(dev); 235 program_fw_provided_values(dev);
236 pci_dev_put(dev);
235 } 237 }
236 238
237 pci_bus_assign_resources(parent); 239 pci_bus_assign_resources(parent);