Explorar el Código

mmc: dw_mmc-pltfm: 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>
Peter Griffin hace 11 años
padre
commit
0529b81094
Se han modificado 1 ficheros con 0 adiciones y 3 borrados
  1. 0 3
      drivers/mmc/host/dw_mmc-pltfm.c

+ 0 - 3
drivers/mmc/host/dw_mmc-pltfm.c

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