Commit 86f1e15f authored by Ulf Hansson's avatar Ulf Hansson Committed by Rafael J. Wysocki

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: default avatarUlf Hansson <ulf.hansson@linaro.org>
Reviewed-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent c3099a52
...@@ -1072,6 +1072,8 @@ int acpi_dev_pm_attach(struct device *dev, bool power_on) ...@@ -1072,6 +1072,8 @@ int acpi_dev_pm_attach(struct device *dev, bool power_on)
acpi_dev_pm_full_power(adev); acpi_dev_pm_full_power(adev);
acpi_device_wakeup(adev, ACPI_STATE_S0, false); acpi_device_wakeup(adev, ACPI_STATE_S0, false);
} }
dev->pm_domain->detach = acpi_dev_pm_detach;
return 0; return 0;
} }
EXPORT_SYMBOL_GPL(acpi_dev_pm_attach); EXPORT_SYMBOL_GPL(acpi_dev_pm_attach);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment