diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2017-03-20 18:50:50 +0100 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2017-04-24 21:41:38 +0200 |
commit | b7813f0fe9535cd9536102b9ac663a669f9be131 (patch) | |
tree | 7cd438564a059d7dd0fba5a6dafeecf6aed9572e /drivers/mmc/host/sdhci-pci-o2micro.c | |
parent | mmc: sdhci-pci: Do not use suspend/resume callbacks with runtime pm (diff) | |
download | linux-b7813f0fe9535cd9536102b9ac663a669f9be131.tar.xz linux-b7813f0fe9535cd9536102b9ac663a669f9be131.zip |
mmc: sdhci-pci: Conditionally compile pm sleep functions
It is confusing to have some parts of suspend / resume under conditional
compilation and some parts not. Use conditional compilation everywhere.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Diffstat (limited to 'drivers/mmc/host/sdhci-pci-o2micro.c')
-rw-r--r-- | drivers/mmc/host/sdhci-pci-o2micro.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci-pci-o2micro.c b/drivers/mmc/host/sdhci-pci-o2micro.c index d48f03104b5b..0ea34e2c7cba 100644 --- a/drivers/mmc/host/sdhci-pci-o2micro.c +++ b/drivers/mmc/host/sdhci-pci-o2micro.c @@ -384,8 +384,10 @@ int sdhci_pci_o2_probe(struct sdhci_pci_chip *chip) return 0; } +#ifdef CONFIG_PM_SLEEP int sdhci_pci_o2_resume(struct sdhci_pci_chip *chip) { sdhci_pci_o2_probe(chip); return 0; } +#endif |