summaryrefslogtreecommitdiffstats
path: root/drivers/clk
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2018-04-09 12:54:34 +0200
committerStephen Boyd <sboyd@kernel.org>2018-04-16 18:07:22 +0200
commita21b85944c9653f2a3388d0da962c7c70690c30f (patch)
tree26c51f92e0b983344afb55e2f01906ca0593eda4 /drivers/clk
parentMerge branch 'clk-stm32mp1' into clk-fixes (diff)
downloadlinux-a21b85944c9653f2a3388d0da962c7c70690c30f.tar.xz
linux-a21b85944c9653f2a3388d0da962c7c70690c30f.zip
clk: cs2000: mark resume function as __maybe_unused
When power management is disabled, we get a harmless warning: drivers/clk/clk-cs2000-cp.c:544:12: error: 'cs2000_resume' defined but not used [-Werror=unused-function] Marking the function as __maybe_unused lets the compiler silently drop it instead. Fixes: eade4ccdb087 ("clk: cs2000: set pm_ops in hibernate-compatible way") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk')
-rw-r--r--drivers/clk/clk-cs2000-cp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk-cs2000-cp.c b/drivers/clk/clk-cs2000-cp.c
index c58019750b7e..a2f8c42e527a 100644
--- a/drivers/clk/clk-cs2000-cp.c
+++ b/drivers/clk/clk-cs2000-cp.c
@@ -541,7 +541,7 @@ probe_err:
return ret;
}
-static int cs2000_resume(struct device *dev)
+static int __maybe_unused cs2000_resume(struct device *dev)
{
struct cs2000_priv *priv = dev_get_drvdata(dev);