]> git.karo-electronics.de Git - linux-beck.git/commitdiff
PM / Domains: Fix compilation warning related to genpd_start_dev_no_timing()
authorSachin Kamat <sachin.kamat@linaro.org>
Thu, 6 Sep 2012 08:18:57 +0000 (08:18 +0000)
committerRafael J. Wysocki <rjw@sisk.pl>
Thu, 6 Sep 2012 21:10:53 +0000 (23:10 +0200)
Function genpd_start_dev_no_timing was accessed inside CONFIG_PM_RUNTIME
macro but defined outside it. When the above macro was not defined the
compiler gave the following warning:

drivers/base/power/domain.c:96:12: warning:
‘genpd_start_dev_no_timing’ defined but not used [-Wunused-function]

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/base/power/domain.c

index 12ad070c244f057bca5179c6fec27fd3dce2a9d1..c22b869245d9498e7052fdc42ceacf3aaa4e332e 100644 (file)
@@ -93,12 +93,6 @@ static int genpd_start_dev(struct generic_pm_domain *genpd, struct device *dev)
                                        start_latency_ns, "start");
 }
 
-static int genpd_start_dev_no_timing(struct generic_pm_domain *genpd,
-                                    struct device *dev)
-{
-       return GENPD_DEV_CALLBACK(genpd, int, start, dev);
-}
-
 static bool genpd_sd_counter_dec(struct generic_pm_domain *genpd)
 {
        bool ret = false;
@@ -296,6 +290,12 @@ int pm_genpd_name_poweron(const char *domain_name)
 
 #ifdef CONFIG_PM_RUNTIME
 
+static int genpd_start_dev_no_timing(struct generic_pm_domain *genpd,
+                                    struct device *dev)
+{
+       return GENPD_DEV_CALLBACK(genpd, int, start, dev);
+}
+
 static int genpd_save_dev(struct generic_pm_domain *genpd, struct device *dev)
 {
        return GENPD_DEV_TIMED_CALLBACK(genpd, int, save_state, dev,