aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2012-02-25 16:14:18 -0500
committerRafael J. Wysocki <rjw@sisk.pl>2012-03-04 17:09:10 -0500
commitb642631d38c28fefd1232a6b96713eb54b60130d (patch)
treea30e9f74eb03b15dac99268ace664891a5aa002e
parent9b4f617b1c2004332113b4a2c89dfb6e8029c987 (diff)
PM / Domains: Fix include for PM_GENERIC_DOMAINS=n case
Fix pm_genpd_init() arguments and make sure dev_gpd_data() and simple_qos_governor exist regardless of CONFIG_PM_GENERIC_DOMAINS setting. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
-rw-r--r--include/linux/pm_domain.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h
index e76cc9ae8233..5c2bbc248c11 100644
--- a/include/linux/pm_domain.h
+++ b/include/linux/pm_domain.h
@@ -155,6 +155,10 @@ extern bool default_stop_ok(struct device *dev);
155extern struct dev_power_governor pm_domain_always_on_gov; 155extern struct dev_power_governor pm_domain_always_on_gov;
156#else 156#else
157 157
158static inline struct generic_pm_domain_data *dev_gpd_data(struct device *dev)
159{
160 return ERR_PTR(-ENOSYS);
161}
158static inline struct generic_pm_domain *dev_to_genpd(struct device *dev) 162static inline struct generic_pm_domain *dev_to_genpd(struct device *dev)
159{ 163{
160 return ERR_PTR(-ENOSYS); 164 return ERR_PTR(-ENOSYS);
@@ -195,7 +199,8 @@ static inline int __pm_genpd_remove_callbacks(struct device *dev, bool clear_td)
195{ 199{
196 return -ENOSYS; 200 return -ENOSYS;
197} 201}
198static inline void pm_genpd_init(struct generic_pm_domain *genpd, bool is_off) 202static inline void pm_genpd_init(struct generic_pm_domain *genpd,
203 struct dev_power_governor *gov, bool is_off)
199{ 204{
200} 205}
201static inline int pm_genpd_poweron(struct generic_pm_domain *genpd) 206static inline int pm_genpd_poweron(struct generic_pm_domain *genpd)
@@ -206,11 +211,8 @@ static inline bool default_stop_ok(struct device *dev)
206{ 211{
207 return false; 212 return false;
208} 213}
214#define simple_qos_governor NULL
209#define pm_domain_always_on_gov NULL 215#define pm_domain_always_on_gov NULL
210static inline struct generic_pm_domain_data *dev_gpd_data(struct device *dev)
211{
212 return NULL;
213}
214#endif 216#endif
215 217
216static inline int pm_genpd_remove_callbacks(struct device *dev) 218static inline int pm_genpd_remove_callbacks(struct device *dev)