aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pm_domain.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/pm_domain.h')
-rw-r--r--include/linux/pm_domain.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h
index 6cd20d5e651b..080e778118ba 100644
--- a/include/linux/pm_domain.h
+++ b/include/linux/pm_domain.h
@@ -113,8 +113,6 @@ struct generic_pm_domain_data {
113 struct pm_domain_data base; 113 struct pm_domain_data base;
114 struct gpd_timing_data td; 114 struct gpd_timing_data td;
115 struct notifier_block nb; 115 struct notifier_block nb;
116 struct mutex lock;
117 unsigned int refcount;
118 int need_restore; 116 int need_restore;
119}; 117};
120 118
@@ -140,7 +138,6 @@ extern int __pm_genpd_name_add_device(const char *domain_name,
140 138
141extern int pm_genpd_remove_device(struct generic_pm_domain *genpd, 139extern int pm_genpd_remove_device(struct generic_pm_domain *genpd,
142 struct device *dev); 140 struct device *dev);
143extern void pm_genpd_dev_need_restore(struct device *dev, bool val);
144extern int pm_genpd_add_subdomain(struct generic_pm_domain *genpd, 141extern int pm_genpd_add_subdomain(struct generic_pm_domain *genpd,
145 struct generic_pm_domain *new_subdomain); 142 struct generic_pm_domain *new_subdomain);
146extern int pm_genpd_add_subdomain_names(const char *master_name, 143extern int pm_genpd_add_subdomain_names(const char *master_name,
@@ -187,7 +184,6 @@ static inline int pm_genpd_remove_device(struct generic_pm_domain *genpd,
187{ 184{
188 return -ENOSYS; 185 return -ENOSYS;
189} 186}
190static inline void pm_genpd_dev_need_restore(struct device *dev, bool val) {}
191static inline int pm_genpd_add_subdomain(struct generic_pm_domain *genpd, 187static inline int pm_genpd_add_subdomain(struct generic_pm_domain *genpd,
192 struct generic_pm_domain *new_sd) 188 struct generic_pm_domain *new_sd)
193{ 189{
@@ -271,6 +267,8 @@ typedef struct generic_pm_domain *(*genpd_xlate_t)(struct of_phandle_args *args,
271int __of_genpd_add_provider(struct device_node *np, genpd_xlate_t xlate, 267int __of_genpd_add_provider(struct device_node *np, genpd_xlate_t xlate,
272 void *data); 268 void *data);
273void of_genpd_del_provider(struct device_node *np); 269void of_genpd_del_provider(struct device_node *np);
270struct generic_pm_domain *of_genpd_get_from_provider(
271 struct of_phandle_args *genpdspec);
274 272
275struct generic_pm_domain *__of_genpd_xlate_simple( 273struct generic_pm_domain *__of_genpd_xlate_simple(
276 struct of_phandle_args *genpdspec, 274 struct of_phandle_args *genpdspec,
@@ -288,6 +286,12 @@ static inline int __of_genpd_add_provider(struct device_node *np,
288} 286}
289static inline void of_genpd_del_provider(struct device_node *np) {} 287static inline void of_genpd_del_provider(struct device_node *np) {}
290 288
289static inline struct generic_pm_domain *of_genpd_get_from_provider(
290 struct of_phandle_args *genpdspec)
291{
292 return NULL;
293}
294
291#define __of_genpd_xlate_simple NULL 295#define __of_genpd_xlate_simple NULL
292#define __of_genpd_xlate_onecell NULL 296#define __of_genpd_xlate_onecell NULL
293 297