]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
PM / Domains: Add a detach callback to the struct dev_pm_domain
authorUlf Hansson <ulf.hansson@linaro.org>
Fri, 19 Sep 2014 18:27:34 +0000 (20:27 +0200)
committerRobin Gong <b38343@freescale.com>
Wed, 11 Feb 2015 05:07:32 +0000 (13:07 +0800)
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)
(cherry picked from commit 96257e7b72821bbaa5681b1d2042050c6aab0ea1)

include/linux/pm.h

index 8c6583a53a0608a796c543d196d52270cbe8ac4d..ea05bc207c9393a84c7ba9de5bb714d66f4a1627 100644 (file)
@@ -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);
 };
 
 /*