aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2014-09-19 14:27:35 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-09-22 09:57:40 -0400
commit86f1e15f5646b4855bd77025c950239650c4843e (patch)
tree7f2fe81fdde64e352087646861b6fb5266771b6d /drivers/acpi
parentc3099a5294f2c7266234e8ea35cbffc20a41aa9a (diff)
ACPI / PM: Assign the ->detach() callback when attaching the PM domain
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>
Diffstat (limited to 'drivers/acpi')
-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 67075f800e34..eec5ed5be949 100644
--- a/drivers/acpi/device_pm.c
+++ b/drivers/acpi/device_pm.c
@@ -1072,6 +1072,8 @@ int acpi_dev_pm_attach(struct device *dev, bool power_on)
1072 acpi_dev_pm_full_power(adev); 1072 acpi_dev_pm_full_power(adev);
1073 acpi_device_wakeup(adev, ACPI_STATE_S0, false); 1073 acpi_device_wakeup(adev, ACPI_STATE_S0, false);
1074 } 1074 }
1075
1076 dev->pm_domain->detach = acpi_dev_pm_detach;
1075 return 0; 1077 return 0;
1076} 1078}
1077EXPORT_SYMBOL_GPL(acpi_dev_pm_attach); 1079EXPORT_SYMBOL_GPL(acpi_dev_pm_attach);