|
@@ -309,6 +309,8 @@ struct generic_pm_domain *of_genpd_remove_last(struct device_node *np)
|
|
|
int dev_pm_domain_attach(struct device *dev, bool power_on);
|
|
|
struct device *dev_pm_domain_attach_by_id(struct device *dev,
|
|
|
unsigned int index);
|
|
|
+struct device *dev_pm_domain_attach_by_name(struct device *dev,
|
|
|
+ char *name);
|
|
|
void dev_pm_domain_detach(struct device *dev, bool power_off);
|
|
|
void dev_pm_domain_set(struct device *dev, struct dev_pm_domain *pd);
|
|
|
#else
|
|
@@ -321,6 +323,11 @@ static inline struct device *dev_pm_domain_attach_by_id(struct device *dev,
|
|
|
{
|
|
|
return NULL;
|
|
|
}
|
|
|
+static inline struct device *dev_pm_domain_attach_by_name(struct device *dev,
|
|
|
+ char *name)
|
|
|
+{
|
|
|
+ return NULL;
|
|
|
+}
|
|
|
static inline void dev_pm_domain_detach(struct device *dev, bool power_off) {}
|
|
|
static inline void dev_pm_domain_set(struct device *dev,
|
|
|
struct dev_pm_domain *pd) {}
|