clk: cs2000: mark resume function as __maybe_unused
authorArnd Bergmann <arnd@arndb.de>
Mon, 9 Apr 2018 10:54:34 +0000 (12:54 +0200)
committerStephen Boyd <sboyd@kernel.org>
Mon, 16 Apr 2018 16:07:22 +0000 (09:07 -0700)
commita21b85944c9653f2a3388d0da962c7c70690c30f
tree26c51f92e0b983344afb55e2f01906ca0593eda4
parent14867765351b75b5aa366310b4535b363d615247
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>
drivers/clk/clk-cs2000-cp.c