diff options
author | Arnd Bergmann <arnd@arndb.de> | 2018-04-09 06:54:34 -0400 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2018-04-16 12:07:22 -0400 |
commit | a21b85944c9653f2a3388d0da962c7c70690c30f (patch) | |
tree | 26c51f92e0b983344afb55e2f01906ca0593eda4 /drivers | |
parent | 14867765351b75b5aa366310b4535b363d615247 (diff) |
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')
-rw-r--r-- | drivers/clk/clk-cs2000-cp.c | 2 |
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: | |||
541 | return ret; | 541 | return ret; |
542 | } | 542 | } |
543 | 543 | ||
544 | static int cs2000_resume(struct device *dev) | 544 | static int __maybe_unused cs2000_resume(struct device *dev) |
545 | { | 545 | { |
546 | struct cs2000_priv *priv = dev_get_drvdata(dev); | 546 | struct cs2000_priv *priv = dev_get_drvdata(dev); |
547 | 547 | ||