Commit dafed447 authored by Ulf Hansson's avatar Ulf Hansson

mmc: sdhci-acpi: Simplify code by using SET_SYSTEM_SLEEP_PM_OPS

By using the SET_SYSTEM_SLEEP_PM_OPS when assigning the system PM
callbacks, we can remove some #ifdefs so code becomes a bit cleaner.
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent f9900f15
...@@ -531,11 +531,6 @@ static int sdhci_acpi_resume(struct device *dev) ...@@ -531,11 +531,6 @@ static int sdhci_acpi_resume(struct device *dev)
return sdhci_resume_host(c->host); return sdhci_resume_host(c->host);
} }
#else
#define sdhci_acpi_suspend NULL
#define sdhci_acpi_resume NULL
#endif #endif
#ifdef CONFIG_PM #ifdef CONFIG_PM
...@@ -559,8 +554,7 @@ static int sdhci_acpi_runtime_resume(struct device *dev) ...@@ -559,8 +554,7 @@ static int sdhci_acpi_runtime_resume(struct device *dev)
#endif #endif
static const struct dev_pm_ops sdhci_acpi_pm_ops = { static const struct dev_pm_ops sdhci_acpi_pm_ops = {
.suspend = sdhci_acpi_suspend, SET_SYSTEM_SLEEP_PM_OPS(sdhci_acpi_suspend, sdhci_acpi_resume)
.resume = sdhci_acpi_resume,
SET_RUNTIME_PM_OPS(sdhci_acpi_runtime_suspend, SET_RUNTIME_PM_OPS(sdhci_acpi_runtime_suspend,
sdhci_acpi_runtime_resume, NULL) sdhci_acpi_runtime_resume, NULL)
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment