|
@@ -529,6 +529,7 @@ static int ehrpwm_pwm_remove(struct platform_device *pdev)
|
|
|
return pwmchip_remove(&pc->chip);
|
|
|
}
|
|
|
|
|
|
+#ifdef CONFIG_PM_SLEEP
|
|
|
static void ehrpwm_pwm_save_context(struct ehrpwm_pwm_chip *pc)
|
|
|
{
|
|
|
pm_runtime_get_sync(pc->chip.dev);
|
|
@@ -555,7 +556,6 @@ static void ehrpwm_pwm_restore_context(struct ehrpwm_pwm_chip *pc)
|
|
|
ehrpwm_write(pc->mmio_base, TBCTL, pc->ctx.tbctl);
|
|
|
}
|
|
|
|
|
|
-#ifdef CONFIG_PM_SLEEP
|
|
|
static int ehrpwm_pwm_suspend(struct device *dev)
|
|
|
{
|
|
|
struct ehrpwm_pwm_chip *pc = dev_get_drvdata(dev);
|