From: Ulf Hansson Date: Wed, 3 Sep 2014 10:52:26 +0000 (+0200) Subject: PM / domains: Add late_initcall to disable unused PM domains X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2fe71dcdfd10d3f71bb559609a8ceda9f76b1e2c;p=linux-beck.git PM / domains: Add late_initcall to disable unused PM domains As default behavior let genpd at late init try to disable the unused PM domains. Signed-off-by: Ulf Hansson Reviewed-by: Kevin Hilman Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index d71d0458d41f..cf4651a15a57 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c @@ -721,6 +721,13 @@ void pm_genpd_poweroff_unused(void) mutex_unlock(&gpd_list_lock); } +static int __init genpd_poweroff_unused(void) +{ + pm_genpd_poweroff_unused(); + return 0; +} +late_initcall(genpd_poweroff_unused); + #else static inline int genpd_dev_pm_qos_notifier(struct notifier_block *nb,