diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-11-27 16:38:05 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-12-03 18:46:58 -0500 |
commit | d30d819dc83107812d9b2876e5e7194e511ed6af (patch) | |
tree | 0c889e71575dca8d9caa26c89cd9ec741632c4fd /include/linux/pm_domain.h | |
parent | ef9cc993cd2e3524d86e86e9ad510e8f34b9c078 (diff) |
PM: Drop CONFIG_PM_RUNTIME from the driver core
After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is
selected) PM_RUNTIME is always set if PM is set, so quite a few
depend on CONFIG_PM or even may be dropped entirely in some cases.
Replace CONFIG_PM_RUNTIME with CONFIG_PM in the PM core code.
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/pm_domain.h')
-rw-r--r-- | include/linux/pm_domain.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h index 2e0e06daf8c0..f9dedf2f4103 100644 --- a/include/linux/pm_domain.h +++ b/include/linux/pm_domain.h | |||
@@ -147,6 +147,7 @@ extern void pm_genpd_init(struct generic_pm_domain *genpd, | |||
147 | 147 | ||
148 | extern int pm_genpd_poweron(struct generic_pm_domain *genpd); | 148 | extern int pm_genpd_poweron(struct generic_pm_domain *genpd); |
149 | extern int pm_genpd_name_poweron(const char *domain_name); | 149 | extern int pm_genpd_name_poweron(const char *domain_name); |
150 | extern void pm_genpd_poweroff_unused(void); | ||
150 | 151 | ||
151 | extern struct dev_power_governor simple_qos_governor; | 152 | extern struct dev_power_governor simple_qos_governor; |
152 | extern struct dev_power_governor pm_domain_always_on_gov; | 153 | extern struct dev_power_governor pm_domain_always_on_gov; |
@@ -221,6 +222,7 @@ static inline int pm_genpd_name_poweron(const char *domain_name) | |||
221 | { | 222 | { |
222 | return -ENOSYS; | 223 | return -ENOSYS; |
223 | } | 224 | } |
225 | static inline void pm_genpd_poweroff_unused(void) {} | ||
224 | #define simple_qos_governor NULL | 226 | #define simple_qos_governor NULL |
225 | #define pm_domain_always_on_gov NULL | 227 | #define pm_domain_always_on_gov NULL |
226 | #endif | 228 | #endif |
@@ -237,12 +239,6 @@ static inline int pm_genpd_name_add_device(const char *domain_name, | |||
237 | return __pm_genpd_name_add_device(domain_name, dev, NULL); | 239 | return __pm_genpd_name_add_device(domain_name, dev, NULL); |
238 | } | 240 | } |
239 | 241 | ||
240 | #ifdef CONFIG_PM_GENERIC_DOMAINS_RUNTIME | ||
241 | extern void pm_genpd_poweroff_unused(void); | ||
242 | #else | ||
243 | static inline void pm_genpd_poweroff_unused(void) {} | ||
244 | #endif | ||
245 | |||
246 | #ifdef CONFIG_PM_GENERIC_DOMAINS_SLEEP | 242 | #ifdef CONFIG_PM_GENERIC_DOMAINS_SLEEP |
247 | extern void pm_genpd_syscore_poweroff(struct device *dev); | 243 | extern void pm_genpd_syscore_poweroff(struct device *dev); |
248 | extern void pm_genpd_syscore_poweron(struct device *dev); | 244 | extern void pm_genpd_syscore_poweron(struct device *dev); |