]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci-pltfm: Convert to use the SET_SYSTEM_SLEEP_PM_OPS
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 27 Jul 2016 10:48:04 +0000 (12:48 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 29 Jul 2016 09:29:03 +0000 (11:29 +0200)
commita484a371c9b989d5d8034ea62063ba73806cf745
treeb1d76ebf6ca1ca6f976984de43e603e736c3259d
parentc33404a699b2a25cb0f7c4b25c8d61e9bfa0cea1
mmc: sdhci-pltfm: Convert to use the SET_SYSTEM_SLEEP_PM_OPS

Move the system PM callbacks within #ifdef CONFIG_PM_SLEEP as to avoid
them being build when not used. This also allows us to use the
SET_SYSTEM_SLEEP_PM_OPS macro which simplifies the code.

Within this context it also makes sense to move the declaration of the
struct sdhci_pltfm_pmops, outside the #ifdef CONFIG_PM as the
SET_SYSTEM_SLEEP_PM_OPS deals with this. This further simplifies the code.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-pltfm.c
drivers/mmc/host/sdhci-pltfm.h