]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb01193bd74ed65a6a2328e7a29d30fb0f2a27839
tree26c51f92e0b983344afb55e2f01906ca0593eda4
parentd2b943ea2c15fc5b8e9b0968442aba96e53628d2
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: 9df478ba75e2 ("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