diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-08-02 02:11:18 -0400 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2013-09-03 07:09:16 -0400 |
commit | 3943a650f62d0a88788db30c92df584660f3999d (patch) | |
tree | 8cc263cf3d24bc2ff2f02c569f4ecd48b0b3f5d6 | |
parent | 88d5a2e6ffaa32e2a09a994872ca10aca07a36e9 (diff) |
pwm: tiecap: add CONFIG_PM_SLEEP to ecap_pwm_{save,restore}_context()
ecap_pwm_save_context() and ecap_pwm_restore_context() are only used
when CONFIG_PM_SLEEP is selected.
drivers/pwm/pwm-tiecap.c:293:13: warning: 'ecap_pwm_save_context' defined but not used [-Wunused-function]
drivers/pwm/pwm-tiecap.c:302:13: warning: 'ecap_pwm_restore_context' defined but not used [-Wunused-function]
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
-rw-r--r-- | drivers/pwm/pwm-tiecap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pwm/pwm-tiecap.c b/drivers/pwm/pwm-tiecap.c index 72ca42dfa733..c2e2e5852362 100644 --- a/drivers/pwm/pwm-tiecap.c +++ b/drivers/pwm/pwm-tiecap.c | |||
@@ -290,6 +290,7 @@ static int ecap_pwm_remove(struct platform_device *pdev) | |||
290 | return pwmchip_remove(&pc->chip); | 290 | return pwmchip_remove(&pc->chip); |
291 | } | 291 | } |
292 | 292 | ||
293 | #ifdef CONFIG_PM_SLEEP | ||
293 | static void ecap_pwm_save_context(struct ecap_pwm_chip *pc) | 294 | static void ecap_pwm_save_context(struct ecap_pwm_chip *pc) |
294 | { | 295 | { |
295 | pm_runtime_get_sync(pc->chip.dev); | 296 | pm_runtime_get_sync(pc->chip.dev); |
@@ -306,7 +307,6 @@ static void ecap_pwm_restore_context(struct ecap_pwm_chip *pc) | |||
306 | writew(pc->ctx.ecctl2, pc->mmio_base + ECCTL2); | 307 | writew(pc->ctx.ecctl2, pc->mmio_base + ECCTL2); |
307 | } | 308 | } |
308 | 309 | ||
309 | #ifdef CONFIG_PM_SLEEP | ||
310 | static int ecap_pwm_suspend(struct device *dev) | 310 | static int ecap_pwm_suspend(struct device *dev) |
311 | { | 311 | { |
312 | struct ecap_pwm_chip *pc = dev_get_drvdata(dev); | 312 | struct ecap_pwm_chip *pc = dev_get_drvdata(dev); |