WSL2-Linux-Kernel/drivers/clk/mmp
Arnd Bergmann c361c5a6c5 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: 725262d291 ("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>
2021-01-12 12:10:55 -08:00
..
Makefile clk: mmp2: Add audio clock controller driver 2020-05-27 17:55:12 -07:00
clk-apbc.c
clk-apmu.c
clk-audio.c clk: mmp2: fix build without CONFIG_PM 2021-01-12 12:10:55 -08:00
clk-frac.c clk: mmp: frac: Allow setting bits other than the numerator/denominator 2020-05-27 17:55:11 -07:00
clk-gate.c
clk-mix.c clk: mmp2: Constify some strings 2020-03-20 18:19:30 -07:00
clk-mmp2.c
clk-of-mmp2.c clk: mmp2: Fix the display clock divider base 2020-10-13 19:53:36 -07:00
clk-of-pxa168.c
clk-of-pxa910.c
clk-of-pxa1928.c clk: mmp: pxa1928: drop unused 'clk' variable 2020-09-22 12:44:40 -07:00
clk-pll.c clk: mmp2: fix link error without mmp2 2020-04-13 12:20:06 -07:00
clk-pxa168.c clk: mmp: avoid missing prototype warning 2020-07-29 12:52:40 -07:00
clk-pxa910.c clk: mmp: avoid missing prototype warning 2020-07-29 12:52:40 -07:00
clk.c clk: mmp2: fix link error without mmp2 2020-04-13 12:20:06 -07:00
clk.h This time around we have 4 lines of diff in the core framework, removing a 2020-06-10 11:42:19 -07:00
pwr-island.c clk: mmp2: Add support for power islands 2020-05-27 17:55:12 -07:00
reset.c
reset.h