aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Griffin <peter.griffin@linaro.org>2014-08-12 12:14:26 -0400
committerUlf Hansson <ulf.hansson@linaro.org>2014-09-09 07:59:05 -0400
commiteb4667426ba7b0676e888aa8ffc448fcf607d284 (patch)
tree883b224999082a5137214ff8ea2a5bd1f03e4a5b
parent2137f5d3b8e8e04cff06194cacd0f6357495ac94 (diff)
mmc: dw_mmc-pci: Remove superflous #else condition on CONFIG_PM_SLEEP
As the code is using SIMPLE_DEV_PM_OPS helper, this compiles away to nothing if CONFIG_PM_SLEEP is disabled. Thus we don't need to #define the suspend/resume callbacks to NULL. Signed-off-by: Peter Griffin <peter.griffin@linaro.org> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r--drivers/mmc/host/dw_mmc-pci.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/mmc/host/dw_mmc-pci.c b/drivers/mmc/host/dw_mmc-pci.c
index 6ada1b36685b..4c69fbd29811 100644
--- a/drivers/mmc/host/dw_mmc-pci.c
+++ b/drivers/mmc/host/dw_mmc-pci.c
@@ -95,9 +95,6 @@ static int dw_mci_pci_resume(struct device *dev)
95 95
96 return dw_mci_resume(host); 96 return dw_mci_resume(host);
97} 97}
98#else
99#define dw_mci_pci_suspend NULL
100#define dw_mci_pci_resume NULL
101#endif /* CONFIG_PM_SLEEP */ 98#endif /* CONFIG_PM_SLEEP */
102 99
103static SIMPLE_DEV_PM_OPS(dw_mci_pci_pmops, dw_mci_pci_suspend, dw_mci_pci_resume); 100static SIMPLE_DEV_PM_OPS(dw_mci_pci_pmops, dw_mci_pci_suspend, dw_mci_pci_resume);