diff options
Diffstat (limited to 'drivers/acpi/acpi_lpss.c')
-rw-r--r-- | drivers/acpi/acpi_lpss.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/acpi/acpi_lpss.c b/drivers/acpi/acpi_lpss.c index d1dd0ada14b7..4f3febf8a589 100644 --- a/drivers/acpi/acpi_lpss.c +++ b/drivers/acpi/acpi_lpss.c | |||
@@ -588,7 +588,6 @@ static int acpi_lpss_resume_early(struct device *dev) | |||
588 | } | 588 | } |
589 | #endif /* CONFIG_PM_SLEEP */ | 589 | #endif /* CONFIG_PM_SLEEP */ |
590 | 590 | ||
591 | #ifdef CONFIG_PM_RUNTIME | ||
592 | static int acpi_lpss_runtime_suspend(struct device *dev) | 591 | static int acpi_lpss_runtime_suspend(struct device *dev) |
593 | { | 592 | { |
594 | struct lpss_private_data *pdata = acpi_driver_data(ACPI_COMPANION(dev)); | 593 | struct lpss_private_data *pdata = acpi_driver_data(ACPI_COMPANION(dev)); |
@@ -631,11 +630,11 @@ static int acpi_lpss_runtime_resume(struct device *dev) | |||
631 | 630 | ||
632 | return pm_generic_runtime_resume(dev); | 631 | return pm_generic_runtime_resume(dev); |
633 | } | 632 | } |
634 | #endif /* CONFIG_PM_RUNTIME */ | ||
635 | #endif /* CONFIG_PM */ | 633 | #endif /* CONFIG_PM */ |
636 | 634 | ||
637 | static struct dev_pm_domain acpi_lpss_pm_domain = { | 635 | static struct dev_pm_domain acpi_lpss_pm_domain = { |
638 | .ops = { | 636 | .ops = { |
637 | #ifdef CONFIG_PM | ||
639 | #ifdef CONFIG_PM_SLEEP | 638 | #ifdef CONFIG_PM_SLEEP |
640 | .prepare = acpi_subsys_prepare, | 639 | .prepare = acpi_subsys_prepare, |
641 | .complete = acpi_subsys_complete, | 640 | .complete = acpi_subsys_complete, |
@@ -647,7 +646,6 @@ static struct dev_pm_domain acpi_lpss_pm_domain = { | |||
647 | .poweroff_late = acpi_lpss_suspend_late, | 646 | .poweroff_late = acpi_lpss_suspend_late, |
648 | .restore_early = acpi_lpss_resume_early, | 647 | .restore_early = acpi_lpss_resume_early, |
649 | #endif | 648 | #endif |
650 | #ifdef CONFIG_PM_RUNTIME | ||
651 | .runtime_suspend = acpi_lpss_runtime_suspend, | 649 | .runtime_suspend = acpi_lpss_runtime_suspend, |
652 | .runtime_resume = acpi_lpss_runtime_resume, | 650 | .runtime_resume = acpi_lpss_runtime_resume, |
653 | #endif | 651 | #endif |