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)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 22 Sep 2014 13:57:40 +0000 (15:57 +0200)
commit86f1e15f5646b4855bd77025c950239650c4843e
tree7f2fe81fdde64e352087646861b6fb5266771b6d
parentc3099a5294f2c7266234e8ea35cbffc20a41aa9a
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>
drivers/acpi/device_pm.c