Skip to content

Commit 31b7483

Browse files
erwangonashif
authored andcommitted
soc: stm32g0: pm_power_ functions should be __weak
In commit "pm: Fix weak linkage symbols" (PR #35274), PM SoC hooks were converted to __weak to avoid clash with new definition of these symbols in subsys/pm/power.c. G0 power implementation was implemented in parallel with this change and missed the update. Signed-off-by: Erwan Gouriou <[email protected]>
1 parent 0d763e0 commit 31b7483

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

soc/arm/st_stm32/stm32g0/power.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
LOG_MODULE_DECLARE(soc, CONFIG_SOC_LOG_LEVEL);
2121

2222
/* Invoke Low Power/System Off specific Tasks */
23-
void pm_power_state_set(struct pm_state_info info)
23+
__weak void pm_power_state_set(struct pm_state_info info)
2424
{
2525
if (info.state != PM_STATE_SUSPEND_TO_IDLE) {
2626
LOG_DBG("Unsupported power state %u", info.state);
@@ -50,7 +50,7 @@ void pm_power_state_set(struct pm_state_info info)
5050
}
5151

5252
/* Handle SOC specific activity after Low Power Mode Exit */
53-
void pm_power_state_exit_post_ops(struct pm_state_info info)
53+
__weak void pm_power_state_exit_post_ops(struct pm_state_info info)
5454
{
5555
if (info.state != PM_STATE_SUSPEND_TO_IDLE) {
5656
LOG_DBG("Unsupported power substate %u", info.state);

0 commit comments

Comments
 (0)