]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: mediatek: mark PM functions as __maybe_unused
authorArnd Bergmann <arnd@arndb.de>
Thu, 3 Dec 2020 22:29:16 +0000 (23:29 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 4 Dec 2020 14:35:54 +0000 (15:35 +0100)
commit8465a4b1ad67b5a462590c34a350ef4d997676c9
tree51da767022619b9dfd5e3e297c7067283feeb8b7
parentffb0f21022965ed950481718e663fdde3e800935
mmc: mediatek: mark PM functions as __maybe_unused

The #ifdef check for the suspend/resume functions is wrong:

drivers/mmc/host/mtk-sd.c:2765:12: error: unused function 'msdc_suspend' [-Werror,-Wunused-function]
static int msdc_suspend(struct device *dev)
drivers/mmc/host/mtk-sd.c:2779:12: error: unused function 'msdc_resume' [-Werror,-Wunused-function]
static int msdc_resume(struct device *dev)

Remove the #ifdef and mark all four as __maybe_unused to aovid the
problem.

Fixes: 8265750772dc ("mmc: mediatek: Fix system suspend/resume support for CQHCI")
Cc: stable@vger.kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20201203222922.1067522-1-arnd@kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mtk-sd.c