summaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/pciehp_core.c
diff options
context:
space:
mode:
authorNicolas Pitre2009-03-16 02:41:23 +0100
committerNicolas Pitre2009-03-16 02:41:23 +0100
commitd6f818f71fa5db79969aaecba302745199376169 (patch)
treefcdedce488db0f80c7a816e0b52df83a01972838 /drivers/pci/hotplug/pciehp_core.c
parent[ARM] Orion: Fix some typos in the DNS-323 support code (diff)
parent[ARM] update mach-types (diff)
downloadkernel-qcow2-linux-d6f818f71fa5db79969aaecba302745199376169.tar.gz
kernel-qcow2-linux-d6f818f71fa5db79969aaecba302745199376169.tar.xz
kernel-qcow2-linux-d6f818f71fa5db79969aaecba302745199376169.zip
Merge commit '305b07680f' into orion/master
Diffstat (limited to 'drivers/pci/hotplug/pciehp_core.c')
-rw-r--r--drivers/pci/hotplug/pciehp_core.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/pci/hotplug/pciehp_core.c b/drivers/pci/hotplug/pciehp_core.c
index c2485542f543..681e3912b821 100644
--- a/drivers/pci/hotplug/pciehp_core.c
+++ b/drivers/pci/hotplug/pciehp_core.c
@@ -434,6 +434,13 @@ static int pciehp_probe(struct pcie_device *dev, const struct pcie_port_service_
goto err_out_release_ctlr;
}
+ /* Enable events after we have setup the data structures */
+ rc = pcie_init_notification(ctrl);
+ if (rc) {
+ ctrl_err(ctrl, "Notification initialization failed\n");
+ goto err_out_release_ctlr;
+ }
+
/* Check if slot is occupied */
t_slot = pciehp_find_slot(ctrl, ctrl->slot_device_offset);
t_slot->hpc_ops->get_adapter_status(t_slot, &value);