memory: tegra: Avoid unused function warnings
authorArnd Bergmann <arnd@arndb.de>
Wed, 8 Apr 2020 19:00:30 +0000 (21:00 +0200)
committerThierry Reding <treding@nvidia.com>
Mon, 22 Jun 2020 11:54:58 +0000 (13:54 +0200)
commit2de758997e69a5f971716c90a9cdc410133283d7
treed137d5c6c2eebbbe04da4ff3f78f769654a19caa
parent1b93fadf2a7e40d221513247019925425384d8d1
memory: tegra: Avoid unused function warnings

The suspend/resume functions have no callers depending on
configuration, so they must be marked __maybe_unused to
avoid these harmless warnings:

drivers/memory/tegra/tegra186.c:1578:12: error: 'tegra186_mc_resume' defined but not used [-Werror=unused-function]
 1578 | static int tegra186_mc_resume(struct device *dev)
      |            ^~~~~~~~~~~~~~~~~~
drivers/memory/tegra/tegra186.c:1573:12: error: 'tegra186_mc_suspend' defined but not used [-Werror=unused-function]
 1573 | static int tegra186_mc_suspend(struct device *dev)
      |            ^~~~~~~~~~~~~~~~~~~

Fixes: 177602b00641 ("memory: tegra: Add system sleep support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/memory/tegra/tegra186.c