From: Ulf Hansson Date: Fri, 19 Sep 2014 18:27:34 +0000 (+0200) Subject: PM / Domains: Add a detach callback to the struct dev_pm_domain X-Git-Tag: firefly_0821_release~3680^2~36^2~4^2~2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=99afc71dc99ec0462595440df73d721b447d7bcd;p=firefly-linux-kernel-4.4.55.git 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 Reviewed-by: Dmitry Torokhov Signed-off-by: Rafael J. Wysocki (cherry picked from commit c3099a5294f2c7266234e8ea35cbffc20a41aa9a) Signed-off-by: Mark Brown --- diff --git a/include/linux/pm.h b/include/linux/pm.h index a224c7f5c377..b8760601ecbe 100644 --- a/include/linux/pm.h +++ b/include/linux/pm.h @@ -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); }; /*