diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-09-06 04:18:57 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2012-09-06 17:10:53 -0400 |
commit | b3d3b9fb6016e6eacd3ae49fb786806d00c43e7b (patch) | |
tree | 0502ad1e26b00f042d2462e6f7fbaf18eee352d8 /drivers/base | |
parent | 74a2799ab51acec9410f467fef8678ebb1125d7d (diff) |
PM / Domains: Fix compilation warning related to genpd_start_dev_no_timing()
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>
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/power/domain.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index 12ad070c244..c22b869245d 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c | |||
@@ -93,12 +93,6 @@ static int genpd_start_dev(struct generic_pm_domain *genpd, struct device *dev) | |||
93 | start_latency_ns, "start"); | 93 | start_latency_ns, "start"); |
94 | } | 94 | } |
95 | 95 | ||
96 | static int genpd_start_dev_no_timing(struct generic_pm_domain *genpd, | ||
97 | struct device *dev) | ||
98 | { | ||
99 | return GENPD_DEV_CALLBACK(genpd, int, start, dev); | ||
100 | } | ||
101 | |||
102 | static bool genpd_sd_counter_dec(struct generic_pm_domain *genpd) | 96 | static bool genpd_sd_counter_dec(struct generic_pm_domain *genpd) |
103 | { | 97 | { |
104 | bool ret = false; | 98 | bool ret = false; |
@@ -296,6 +290,12 @@ int pm_genpd_name_poweron(const char *domain_name) | |||
296 | 290 | ||
297 | #ifdef CONFIG_PM_RUNTIME | 291 | #ifdef CONFIG_PM_RUNTIME |
298 | 292 | ||
293 | static int genpd_start_dev_no_timing(struct generic_pm_domain *genpd, | ||
294 | struct device *dev) | ||
295 | { | ||
296 | return GENPD_DEV_CALLBACK(genpd, int, start, dev); | ||
297 | } | ||
298 | |||
299 | static int genpd_save_dev(struct generic_pm_domain *genpd, struct device *dev) | 299 | static int genpd_save_dev(struct generic_pm_domain *genpd, struct device *dev) |
300 | { | 300 | { |
301 | return GENPD_DEV_TIMED_CALLBACK(genpd, int, save_state, dev, | 301 | return GENPD_DEV_TIMED_CALLBACK(genpd, int, save_state, dev, |