aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pwm')
-rw-r--r--drivers/pwm/pwm-tiehrpwm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pwm/pwm-tiehrpwm.c b/drivers/pwm/pwm-tiehrpwm.c
index d058ba90845b..6a217596942f 100644
--- a/drivers/pwm/pwm-tiehrpwm.c
+++ b/drivers/pwm/pwm-tiehrpwm.c
@@ -533,7 +533,7 @@ static int ehrpwm_pwm_remove(struct platform_device *pdev)
533 return pwmchip_remove(&pc->chip); 533 return pwmchip_remove(&pc->chip);
534} 534}
535 535
536void ehrpwm_pwm_save_context(struct ehrpwm_pwm_chip *pc) 536static void ehrpwm_pwm_save_context(struct ehrpwm_pwm_chip *pc)
537{ 537{
538 pm_runtime_get_sync(pc->chip.dev); 538 pm_runtime_get_sync(pc->chip.dev);
539 pc->ctx.tbctl = ehrpwm_read(pc->mmio_base, TBCTL); 539 pc->ctx.tbctl = ehrpwm_read(pc->mmio_base, TBCTL);
@@ -547,7 +547,7 @@ void ehrpwm_pwm_save_context(struct ehrpwm_pwm_chip *pc)
547 pm_runtime_put_sync(pc->chip.dev); 547 pm_runtime_put_sync(pc->chip.dev);
548} 548}
549 549
550void ehrpwm_pwm_restore_context(struct ehrpwm_pwm_chip *pc) 550static void ehrpwm_pwm_restore_context(struct ehrpwm_pwm_chip *pc)
551{ 551{
552 ehrpwm_write(pc->mmio_base, TBPRD, pc->ctx.tbprd); 552 ehrpwm_write(pc->mmio_base, TBPRD, pc->ctx.tbprd);
553 ehrpwm_write(pc->mmio_base, CMPA, pc->ctx.cmpa); 553 ehrpwm_write(pc->mmio_base, CMPA, pc->ctx.cmpa);