diff options
author | Arnd Bergmann <arnd@arndb.de> | 2021-01-03 16:54:53 +0300 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2021-01-12 23:10:55 +0300 |
commit | c361c5a6c559d1e0a2717abe9162a71aa602954f (patch) | |
tree | 94d66697fc72766f24d8e553b0445b7190196e8b /README | |
parent | fd2383093593b23f8814a879093b746e502fe3cf (diff) | |
download | linux-c361c5a6c559d1e0a2717abe9162a71aa602954f.tar.xz |
clk: mmp2: fix build without CONFIG_PM
pm_clk_suspend()/pm_clk_resume() are defined as NULL pointers rather than
empty inline stubs without CONFIG_PM:
drivers/clk/mmp/clk-audio.c:402:16: error: called object type 'void *' is not a function or function pointer
pm_clk_suspend(dev);
drivers/clk/mmp/clk-audio.c:411:15: error: called object type 'void *' is not a function or function pointer
pm_clk_resume(dev);
I tried redefining the helper functions, but that caused additional
problems. This is the simple solution of replacing the __maybe_unused
trick with an #ifdef.
Fixes: 725262d29139 ("clk: mmp2: Add audio clock controller driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20210103135503.3668784-1-arnd@kernel.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions