aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2014-09-19 20:27:35 +0200
committerMark Brown <broonie@kernel.org>2014-12-12 20:02:04 +0000
commit451186466690224e3c49e915bbcbcb04dae65b5b (patch)
tree07b43593743a758a8931caafba9a648da1f2def9
parent4d2dff7c89b093885dada13653ca8f8c8d1a9f2d (diff)
downloadlinux-linaro-stable-v3.14/topic/gendpd.tar.gz
ACPI / PM: Assign the ->detach() callback when attaching the PM domainv3.14/topic/genpdv3.14/topic/gendpd
As as preparation to simplify the detachment of devices from their PM domains, we assign the ->detach() callback to genpd_dev_pm_detach(). Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Reviewed-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> (cherry picked from commit 86f1e15f5646b4855bd77025c950239650c4843e) Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--drivers/acpi/device_pm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/acpi/device_pm.c b/drivers/acpi/device_pm.c
index c14a00d3dca6..fc75bdf8067e 100644
--- a/drivers/acpi/device_pm.c
+++ b/drivers/acpi/device_pm.c
@@ -987,6 +987,8 @@ int acpi_dev_pm_attach(struct device *dev, bool power_on)
acpi_dev_pm_full_power(adev);
__acpi_device_run_wake(adev, false);
}
+
+ dev->pm_domain->detach = acpi_dev_pm_detach;
return 0;
}
EXPORT_SYMBOL_GPL(acpi_dev_pm_attach);