forked from luck/tmp_suning_uos_patched
cee27fcc8c
commit c361c5a6c559d1e0a2717abe9162a71aa602954f upstream.
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:
|
||
---|---|---|
.. | ||
clk-apbc.c | ||
clk-apmu.c | ||
clk-audio.c | ||
clk-frac.c | ||
clk-gate.c | ||
clk-mix.c | ||
clk-mmp2.c | ||
clk-of-mmp2.c | ||
clk-of-pxa168.c | ||
clk-of-pxa910.c | ||
clk-of-pxa1928.c | ||
clk-pll.c | ||
clk-pxa168.c | ||
clk-pxa910.c | ||
clk.c | ||
clk.h | ||
Makefile | ||
pwr-island.c | ||
reset.c | ||
reset.h |