mmc: sdhci-esdhc-imx: Assign system PM ops within #ifdef CONFIG_PM_SLEEP
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 27 Jul 2016 09:46:25 +0000 (11:46 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 29 Jul 2016 09:28:55 +0000 (11:28 +0200)
commit2788ed42cdd755c2e81bb962fed43426ee5aac64
tree54c15ca0d5d4e2152eed56816d5aedbb731513e6
parentee4cf97c3271df60bf324bd6157ee2c6604fab35
mmc: sdhci-esdhc-imx: Assign system PM ops within #ifdef CONFIG_PM_SLEEP

The system PM callbacks isn't used unless CONFIG_PM_SLEEP is set, thus it
triggers a compiler warning about unused functions. Avoid this by changing
from CONFIG_PM to CONFIG_PM_SLEEP.

Reported-by: Arnd Bergmann <arnd@arndb.de>
Fixes: b70d0b3b5b29 ("mmc: sdhci-esdhc-imx: add esdhc specific suspend resume callback")
Cc: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Dong Aisheng <aisheng.dong@nxp.com>
drivers/mmc/host/sdhci-esdhc-imx.c