mmc: dw_mmc-pltfm: Remove superflous #else condition on CONFIG_PM_SLEEP
authorPeter Griffin <peter.griffin@linaro.org>
Tue, 12 Aug 2014 16:14:27 +0000 (17:14 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 9 Sep 2014 11:59:05 +0000 (13:59 +0200)
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>
drivers/mmc/host/dw_mmc-pltfm.c

index b547f7ab18bd06f1694ab8c58913d08caf43857d..1cd02828e5a343438f7b4545f70456fb74dabd79 100644 (file)
@@ -134,9 +134,6 @@ static int dw_mci_pltfm_resume(struct device *dev)
 
        return dw_mci_resume(host);
 }
-#else
-#define dw_mci_pltfm_suspend   NULL
-#define dw_mci_pltfm_resume    NULL
 #endif /* CONFIG_PM_SLEEP */
 
 SIMPLE_DEV_PM_OPS(dw_mci_pltfm_pmops, dw_mci_pltfm_suspend, dw_mci_pltfm_resume);