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)
committerMark Brown <broonie@kernel.org>
Fri, 12 Dec 2014 20:06:03 +0000 (20:06 +0000)
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)
Signed-off-by: Mark Brown <broonie@kernel.org>
include/linux/pm.h

index a224c7f5c377e796969a6d96b684d96b7779c9b5..b8760601ecbeaa3adc232965316ea8597e63158c 100644 (file)
@@ -575,6 +575,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);
 };
 
 /*