diff options
Diffstat (limited to 'drivers/pwm')
-rw-r--r-- | drivers/pwm/pwm-tiecap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pwm/pwm-tiecap.c b/drivers/pwm/pwm-tiecap.c index 22e96e2bffd3..f024db06e6c4 100644 --- a/drivers/pwm/pwm-tiecap.c +++ b/drivers/pwm/pwm-tiecap.c | |||
@@ -311,6 +311,7 @@ void ecap_pwm_restore_context(struct ecap_pwm_chip *pc) | |||
311 | writew(pc->ctx.ecctl2, pc->mmio_base + ECCTL2); | 311 | writew(pc->ctx.ecctl2, pc->mmio_base + ECCTL2); |
312 | } | 312 | } |
313 | 313 | ||
314 | #ifdef CONFIG_PM_SLEEP | ||
314 | static int ecap_pwm_suspend(struct device *dev) | 315 | static int ecap_pwm_suspend(struct device *dev) |
315 | { | 316 | { |
316 | struct ecap_pwm_chip *pc = dev_get_drvdata(dev); | 317 | struct ecap_pwm_chip *pc = dev_get_drvdata(dev); |
@@ -337,6 +338,7 @@ static int ecap_pwm_resume(struct device *dev) | |||
337 | ecap_pwm_restore_context(pc); | 338 | ecap_pwm_restore_context(pc); |
338 | return 0; | 339 | return 0; |
339 | } | 340 | } |
341 | #endif | ||
340 | 342 | ||
341 | static SIMPLE_DEV_PM_OPS(ecap_pwm_pm_ops, ecap_pwm_suspend, ecap_pwm_resume); | 343 | static SIMPLE_DEV_PM_OPS(ecap_pwm_pm_ops, ecap_pwm_suspend, ecap_pwm_resume); |
342 | 344 | ||