ACPI / PM: Assign the ->detach() callback when attaching the PM domain
authorUlf Hansson <ulf.hansson@linaro.org>
Fri, 19 Sep 2014 18:27:35 +0000 (20:27 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 12 Dec 2014 20:06:12 +0000 (20:06 +0000)
commit0475cf9a2f972b7e12a093623ede7735e49835c1
treeefbdd202abc13c9784d7ea7382fc619b7cd1cca3
parent99afc71dc99ec0462595440df73d721b447d7bcd
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>
(cherry picked from commit 86f1e15f5646b4855bd77025c950239650c4843e)
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/acpi/device_pm.c