]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
firmware: arm_scmi: Convert to SYSTEM_SLEEP_PM_OPS
authorArnd Bergmann <arnd@arndb.de>
Wed, 9 Jul 2025 07:01:01 +0000 (09:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Aug 2025 16:36:35 +0000 (18:36 +0200)
commitfb9c2eef2390f73bec2f4bc846c2eb4bf08916da
tree21bea47d4d5ce7ca426277e1c30d78b5094a6d9e
parent29c1a8e6e749c6213e6bea903a8980fbf7017e4a
firmware: arm_scmi: Convert to SYSTEM_SLEEP_PM_OPS

commit 62d6b81e8bd207ad44eff39d1a0fe17f0df510a5 upstream.

The old SET_SYSTEM_SLEEP_PM_OPS() macro leads to a warning about an
unused function:

  |  drivers/firmware/arm_scmi/scmi_power_control.c:363:12: error:
  |  'scmi_system_power_resume' defined but not used [-Werror=unused-function]
  |         static int scmi_system_power_resume(struct device *dev)

The proper way to do this these days is to use SYSTEM_SLEEP_PM_OPS()
and pm_sleep_ptr().

Fixes: 9a0658d3991e ("firmware: arm_scmi: power_control: Ensure SCMI_SYSPOWER_IDLE is set early during resume")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Peng Fan <peng.fan@nxp.com>
Message-Id: <20250709070107.1388512-1-arnd@kernel.org>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/firmware/arm_scmi/scmi_power_control.c