summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2019-03-04 21:26:05 +0100
committerJassi Brar <jaswinder.singh@linaro.org>2019-03-06 20:31:03 -0600
commita904327e98a546d9a4d570e810cc67cc5b0eab7a (patch)
treeed0f1ae798d408a1fe28f223e0346296d88b86bc /drivers
parent3717f613f48df0222311f974cf8a06c8a6c97bae (diff)
downloadlinux-stable-a904327e98a546d9a4d570e810cc67cc5b0eab7a.tar.gz
linux-stable-a904327e98a546d9a4d570e810cc67cc5b0eab7a.tar.bz2
linux-stable-a904327e98a546d9a4d570e810cc67cc5b0eab7a.zip
mailbox: tegra-hsp: mark suspend function as __maybe_unused
We get a warning about this being unused when CONFIG_PM is disabled: drivers/mailbox/tegra-hsp.c:782:12: error: 'tegra_hsp_resume' defined but not used [-Werror=unused-function] Fixes: 9a63f0f40599 ("mailbox: tegra-hsp: Add suspend/resume support") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mailbox/tegra-hsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mailbox/tegra-hsp.c b/drivers/mailbox/tegra-hsp.c
index e443f6a2ec4b..11fc9fd6a94a 100644
--- a/drivers/mailbox/tegra-hsp.c
+++ b/drivers/mailbox/tegra-hsp.c
@@ -779,7 +779,7 @@ static int tegra_hsp_probe(struct platform_device *pdev)
return 0;
}
-static int tegra_hsp_resume(struct device *dev)
+static int __maybe_unused tegra_hsp_resume(struct device *dev)
{
struct tegra_hsp *hsp = dev_get_drvdata(dev);
unsigned int i;