]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci-pltfm: Fix linking err for sdhci-brcmstb
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 26 Jan 2021 09:43:13 +0000 (10:43 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 1 Feb 2021 10:13:09 +0000 (11:13 +0100)
commit391429df8ecfd550f0a8a9e896d13b5c036e1afe
treedb1c377a972ba26af923147e2cb6023eb3f12016
parentf0802bbb505691c3675618e4efe65f23d7a38247
mmc: sdhci-pltfm: Fix linking err for sdhci-brcmstb

The implementation of sdhci_pltfm_suspend() is only available when
CONFIG_PM_SLEEP is set, which triggers a linking error:

"undefined symbol: sdhci_pltfm_suspend" when building sdhci-brcmstb.c.

Fix this by implementing the missing stubs when CONFIG_PM_SLEEP is unset.

Reported-by: Arnd Bergmann <arnd@arndb.de>
Suggested-by: Florian Fainelli <f.fainelli@gmail.com>
Fixes: 0c2ceffa4375 ("mmc: sdhci-brcmstb: Fix mmc timeout errors on S5 suspend")
Cc: stable@vger.kernel.org
Tested-By: Nicolas Schichan <nschichan@freeebox.fr>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-pltfm.h