]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
PM / Domains: Export pm_genpd_poweron() in header
authorMagnus Damm <damm@opensource.se>
Sun, 10 Jul 2011 08:39:14 +0000 (10:39 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Sun, 10 Jul 2011 08:39:14 +0000 (10:39 +0200)
Allow SoC-specific code to call pm_genpd_poweron().

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/base/power/domain.c
include/linux/pm_domain.h

index 1aed94c73cfc63c161a2ba61b9e0be47dc69062f..1f1a7d85f29de6d687580bac6b1d5595df9da25f 100644 (file)
@@ -37,7 +37,7 @@ static void genpd_sd_counter_dec(struct generic_pm_domain *genpd)
  * Restore power to @genpd and all of its parents so that it is possible to
  * resume a device belonging to it.
  */
-static int pm_genpd_poweron(struct generic_pm_domain *genpd)
+int pm_genpd_poweron(struct generic_pm_domain *genpd)
 {
        int ret = 0;
 
index 98491ee35102979c10ee3de9574aad37706538ab..14fb0953fa478b81e792849703c4398a3e5fdc7a 100644 (file)
@@ -63,6 +63,7 @@ extern int pm_genpd_remove_subdomain(struct generic_pm_domain *genpd,
                                     struct generic_pm_domain *target);
 extern void pm_genpd_init(struct generic_pm_domain *genpd,
                          struct dev_power_governor *gov, bool is_off);
+extern int pm_genpd_poweron(struct generic_pm_domain *genpd);
 #else
 static inline int pm_genpd_add_device(struct generic_pm_domain *genpd,
                                      struct device *dev)
@@ -86,6 +87,10 @@ static inline int pm_genpd_remove_subdomain(struct generic_pm_domain *genpd,
 }
 static inline void pm_genpd_init(struct generic_pm_domain *genpd,
                                 struct dev_power_governor *gov, bool is_off) {}
+static inline int pm_genpd_poweron(struct generic_pm_domain *genpd)
+{
+       return -ENOSYS;
+}
 #endif
 
 #endif /* _LINUX_PM_DOMAIN_H */