mm: use pgdat_end_pfn() to simplify the code in others
[deliverable/linux.git] / drivers / pwm / pwm-tiecap.c
index 72ca42dfa733312e408f155db136d81eb1822ace..c2e2e5852362afbd62a8c097fb195ea92433cf15 100644 (file)
@@ -290,6 +290,7 @@ static int ecap_pwm_remove(struct platform_device *pdev)
        return pwmchip_remove(&pc->chip);
 }
 
+#ifdef CONFIG_PM_SLEEP
 static void ecap_pwm_save_context(struct ecap_pwm_chip *pc)
 {
        pm_runtime_get_sync(pc->chip.dev);
@@ -306,7 +307,6 @@ static void ecap_pwm_restore_context(struct ecap_pwm_chip *pc)
        writew(pc->ctx.ecctl2, pc->mmio_base + ECCTL2);
 }
 
-#ifdef CONFIG_PM_SLEEP
 static int ecap_pwm_suspend(struct device *dev)
 {
        struct ecap_pwm_chip *pc = dev_get_drvdata(dev);
This page took 0.02651 seconds and 5 git commands to generate.