linux/drivers/soc/mediatek
Nathan Chancellor c749d676a3 soc: mediatek: SVS: Use DEFINE_SIMPLE_DEV_PM_OPS for svs_pm_ops
When building this driver for an architecture that does not support
CONFIG_PM_SLEEP, such as hexagon, the following warnings occur:

  drivers/soc/mediatek/mtk-svs.c:1481:12: error: unused function 'svs_suspend' [-Werror,-Wunused-function]
  static int svs_suspend(struct device *dev)
             ^
  drivers/soc/mediatek/mtk-svs.c:1515:12: error: unused function 'svs_resume' [-Werror,-Wunused-function]
  static int svs_resume(struct device *dev)
             ^
  2 errors generated.

This happens because SIMPLE_DEV_PM_OPS uses SET_SYSTEM_SLEEP_PM_OPS,
which evaluates to nothing when CONFIG_PM_SLEEP is not set, leaving the
functions unused in the eyes of the compiler.

This problem was rectified in commit 1a3c7bb088 ("PM: core: Add new
*_PM_OPS macros, deprecate old ones") with new macros. Use
DEFINE_SIMPLE_DEV_PM_OPS to fix the warning while not changing
svs_pm_ops when CONFIG_PM_SLEEP is set.

Fixes: 681a02e950 ("soc: mediatek: SVS: introduce MTK SVS engine")
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/r/20220622175649.1856337-1-nathan@kernel.org
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
2022-07-07 12:07:23 +02:00
..
Kconfig soc: mediatek: SVS: introduce MTK SVS engine 2022-06-17 10:50:07 +02:00
Makefile soc: mediatek: SVS: introduce MTK SVS engine 2022-06-17 10:50:07 +02:00
mt8167-mmsys.h soc: mediatek: add DDP_DOMPONENT_DITHER0 enum for mt8195 vdosys0 2022-04-22 14:38:53 +02:00
mt8167-pm-domains.h soc: mediatek: pm-domains: Move power status offset to power domain data 2022-02-28 12:02:04 +01:00
mt8173-pm-domains.h soc: mediatek: pm-domains: Move power status offset to power domain data 2022-02-28 12:02:04 +01:00
mt8183-mmsys.h soc: mediatek: add DDP_DOMPONENT_DITHER0 enum for mt8195 vdosys0 2022-04-22 14:38:53 +02:00
mt8183-pm-domains.h soc: mediatek: mtk-pm-domains: Allow probing vreg supply on two MFGs 2022-07-07 12:07:23 +02:00
mt8186-mmsys.h soc: mediatek: add DDP_DOMPONENT_DITHER0 enum for mt8195 vdosys0 2022-04-22 14:38:53 +02:00
mt8186-pm-domains.h soc: mediatek: mtk-pm-domains: Allow probing vreg supply on two MFGs 2022-07-07 12:07:23 +02:00
mt8192-mmsys.h soc: mediatek: add DDP_DOMPONENT_DITHER0 enum for mt8195 vdosys0 2022-04-22 14:38:53 +02:00
mt8192-pm-domains.h soc: mediatek: mtk-pm-domains: Allow probing vreg supply on two MFGs 2022-07-07 12:07:23 +02:00
mt8195-mmsys.h soc: mediatek: add DDP_DOMPONENT_DITHER0 enum for mt8195 vdosys0 2022-04-22 14:38:53 +02:00
mt8195-pm-domains.h soc: mediatek: mtk-pm-domains: Allow probing vreg supply on two MFGs 2022-07-07 12:07:23 +02:00
mt8365-mmsys.h soc: mediatek: mt8365-mmsys: add DPI/HDMI display path 2022-06-17 12:25:57 +02:00
mtk-cmdq-helper.c soc: mediatek: cmdq: Use mailbox rx_callback instead of cmdq_task_cb 2022-04-20 14:14:59 +02:00
mtk-devapc.c soc: mediatek: devapc: Add support for MT8186 2022-06-07 18:25:15 +02:00
mtk-infracfg.c soc: mediatek: mtk-infracfg: Disable ACP on MT8192 2022-03-01 08:21:28 +01:00
mtk-mmsys.c Merge tag 'v5.18-next-vdso0-stable-tag' into v5.18-next/soc 2022-04-22 14:39:59 +02:00
mtk-mmsys.h soc: mediatek: add mtk-mmsys support for mt8195 vdosys0 2022-04-22 14:38:52 +02:00
mtk-mutex.c soc: mediatek: mutex: Use DDP_COMPONENT_DITHER0 mod index for MT8365 2022-06-22 16:06:41 +02:00
mtk-pm-domains.c soc: mediatek: pm-domains: Add support always on flag 2022-06-17 13:49:37 +02:00
mtk-pm-domains.h soc: mediatek: pm-domains: Add support always on flag 2022-06-17 13:49:37 +02:00
mtk-pmic-wrap.c soc: mediatek: pwrap: Compress of_device_id entries to one line 2022-06-07 18:25:15 +02:00
mtk-scpsys.c ASoC: Revert "ASoC: mediatek: Check for error clk pointer" 2022-02-08 13:37:39 +00:00
mtk-svs.c soc: mediatek: SVS: Use DEFINE_SIMPLE_DEV_PM_OPS for svs_pm_ops 2022-07-07 12:07:23 +02:00