aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-12-15 07:51:52 -0500
committerThierry Reding <treding@nvidia.com>2017-12-21 08:52:37 -0500
commit013e2b722aa9b18649dbae8422ced270c793f9d4 (patch)
tree9973fee87adb0a00d2e175ac0702c5fe0e80eeb0
parentbc8828bd08bd2a645caeb64d299d67faca7a3b4f (diff)
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>
-rw-r--r--drivers/gpu/drm/tegra/hub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/tegra/hub.c b/drivers/gpu/drm/tegra/hub.c
index 90bcf24b1523..e10a47d57313 100644
--- a/drivers/gpu/drm/tegra/hub.c
+++ b/drivers/gpu/drm/tegra/hub.c
@@ -728,7 +728,7 @@ static int tegra_display_hub_remove(struct platform_device *pdev)
728 return err; 728 return err;
729} 729}
730 730
731static int tegra_display_hub_suspend(struct device *dev) 731static int __maybe_unused tegra_display_hub_suspend(struct device *dev)
732{ 732{
733 struct tegra_display_hub *hub = dev_get_drvdata(dev); 733 struct tegra_display_hub *hub = dev_get_drvdata(dev);
734 int err; 734 int err;
@@ -744,7 +744,7 @@ static int tegra_display_hub_suspend(struct device *dev)
744 return 0; 744 return 0;
745} 745}
746 746
747static int tegra_display_hub_resume(struct device *dev) 747static int __maybe_unused tegra_display_hub_resume(struct device *dev)
748{ 748{
749 struct tegra_display_hub *hub = dev_get_drvdata(dev); 749 struct tegra_display_hub *hub = dev_get_drvdata(dev);
750 int err; 750 int err;