summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sdhci-pci.c
diff options
context:
space:
mode:
authorPeter Griffin2014-08-12 18:14:28 +0200
committerUlf Hansson2014-09-09 13:59:06 +0200
commitf3a92b1a3258f8ef9a59bab24b9ea68b60908c44 (patch)
tree82d09e05386c03b7706f2aa5fa1bf2c9faaecb55 /drivers/mmc/host/sdhci-pci.c
parentmmc: dw_mmc-pltfm: Remove superflous #else condition on CONFIG_PM_SLEEP (diff)
downloadkernel-qcow2-linux-f3a92b1a3258f8ef9a59bab24b9ea68b60908c44.tar.gz
kernel-qcow2-linux-f3a92b1a3258f8ef9a59bab24b9ea68b60908c44.tar.xz
kernel-qcow2-linux-f3a92b1a3258f8ef9a59bab24b9ea68b60908c44.zip
mmc: sdhci-pci: Use SET_RUNTIME_PM_OPS macro to set runtime pm callbacks
This allows us to get rid of the #else condition, as the macro compiles away to nothing if not enabled. Signed-off-by: Peter Griffin <peter.griffin@linaro.org> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/sdhci-pci.c')
-rw-r--r--drivers/mmc/host/sdhci-pci.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/drivers/mmc/host/sdhci-pci.c b/drivers/mmc/host/sdhci-pci.c
index c3a1debc9289..310ecbcdfb7f 100644
--- a/drivers/mmc/host/sdhci-pci.c
+++ b/drivers/mmc/host/sdhci-pci.c
@@ -1269,20 +1269,13 @@ static int sdhci_pci_runtime_idle(struct device *dev)
return 0;
}
-#else
-
-#define sdhci_pci_runtime_suspend NULL
-#define sdhci_pci_runtime_resume NULL
-#define sdhci_pci_runtime_idle NULL
-
#endif
static const struct dev_pm_ops sdhci_pci_pm_ops = {
.suspend = sdhci_pci_suspend,
.resume = sdhci_pci_resume,
- .runtime_suspend = sdhci_pci_runtime_suspend,
- .runtime_resume = sdhci_pci_runtime_resume,
- .runtime_idle = sdhci_pci_runtime_idle,
+ SET_RUNTIME_PM_OPS(sdhci_pci_runtime_suspend,
+ sdhci_pci_runtime_resume, sdhci_pci_runtime_idle)
};
/*****************************************************************************\