aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-02-20 19:08:42 -0500
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-02-20 19:08:42 -0500
commitd7c7c0256b936901eb7a70fbc6d674a6bdfd463e (patch)
tree480531defa1c1b2024e02c7b75bf58bb78e57596 /drivers/pci
parentaf8874491de6f03237df5e20d87324cbbe226f19 (diff)
ACPI / hotplug / PCI: Do not clear event callback pointer for docks
After recent changes adding dock station handling to the ACPI hotplug core, it is not necessary to clear the .event() pointer in the ACPIPHP device hotplug context for dock stations any more, so don't do that. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/hotplug/acpiphp_glue.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/pci/hotplug/acpiphp_glue.c b/drivers/pci/hotplug/acpiphp_glue.c
index 91276f9fe268..db81412cacb0 100644
--- a/drivers/pci/hotplug/acpiphp_glue.c
+++ b/drivers/pci/hotplug/acpiphp_glue.c
@@ -304,13 +304,6 @@ static acpi_status register_slot(acpi_handle handle, u32 lvl, void *data,
304 if (acpi_has_method(handle, "_STA")) 304 if (acpi_has_method(handle, "_STA"))
305 newfunc->flags |= FUNC_HAS_STA; 305 newfunc->flags |= FUNC_HAS_STA;
306 306
307 /*
308 * Dock stations' notify handler should be used for dock devices instead
309 * of the common one, so clear hp.event in their contexts.
310 */
311 if (acpi_has_method(handle, "_DCK"))
312 context->hp.event = NULL;
313
314 acpi_unlock_hp_context(); 307 acpi_unlock_hp_context();
315 308
316 /* search for objects that share the same slot */ 309 /* search for objects that share the same slot */