diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2014-09-19 20:27:34 +0200 |
---|---|---|
committer | Robin Gong <b38343@freescale.com> | 2015-02-11 09:48:58 +0800 |
commit | 96257e7b72821bbaa5681b1d2042050c6aab0ea1 (patch) | |
tree | 03bf24d4f027d1abc169d7e624c188d2191e4962 /include | |
parent | e2c50506fee918f95425babbccc7ecf28d3d2f87 (diff) |
PM / Domains: Add a detach callback to the struct dev_pm_domain
The intent of this callback is to simplify detachment of devices from
their PM domains. Further patches will show the benefit.
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 c3099a5294f2c7266234e8ea35cbffc20a41aa9a)
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/pm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/pm.h b/include/linux/pm.h index 8c6583a53a06..ea05bc207c93 100644 --- a/include/linux/pm.h +++ b/include/linux/pm.h @@ -596,6 +596,7 @@ extern int dev_pm_put_subsys_data(struct device *dev); */ struct dev_pm_domain { struct dev_pm_ops ops; + void (*detach)(struct device *dev, bool power_off); }; /* |