mmc: sdhci-msm: avoid unused function warning
authorArnd Bergmann <arnd@arndb.de>
Mon, 10 Dec 2018 20:45:36 +0000 (21:45 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 17 Dec 2018 07:26:24 +0000 (08:26 +0100)
commit6809a5f7366ff0db60647bf4a860f4a07942276e
tree98b96f0287e9696e266954a8308428e9824f4dc2
parent0e6e7c2ff397e1bbebc882ca3132148aaaef1ddd
mmc: sdhci-msm: avoid unused function warning

The newly added sdhci_msm_restore_sdr_dll_config() function is only called
if CONFIG_PM is enabled:

drivers/mmc/host/sdhci-msm.c:1050:12: error:
'sdhci_msm_restore_sdr_dll_config' defined but not used
[-Werror=unused-function]

Better remove the incorrect #ifdef altogether and just use __maybe_unused,
which is harder to get wrong.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-msm.c