drm/tegra: Mark Tegra186 display hub PM functions __maybe_unused
authorArnd Bergmann <arnd@arndb.de>
Fri, 15 Dec 2017 12:51:52 +0000 (13:51 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 21 Dec 2017 13:52:37 +0000 (14:52 +0100)
commit013e2b722aa9b18649dbae8422ced270c793f9d4
tree9973fee87adb0a00d2e175ac0702c5fe0e80eeb0
parentbc8828bd08bd2a645caeb64d299d67faca7a3b4f
drm/tegra: Mark Tegra186 display hub PM functions __maybe_unused

The newly introduced driver has optional suspend/resume functions,
causing a warning when CONFIG_PM is disabled:

drivers/gpu/drm/tegra/hub.c:749:12: error: 'tegra_display_hub_resume' defined but not used [-Werror=unused-function]
drivers/gpu/drm/tegra/hub.c:733:12: error: 'tegra_display_hub_suspend' defined but not used [-Werror=unused-function]

This marks them __maybe_unused to shut up the warnings.

Fixes: c4755fb9064f ("drm/tegra: Add Tegra186 display hub support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/hub.c