From 31b7483a99ad2dd1bcdf05a85248177da7c6dec1 Mon Sep 17 00:00:00 2001 From: Erwan Gouriou Date: Mon, 6 Sep 2021 11:08:08 +0200 Subject: [PATCH] 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 --- soc/arm/st_stm32/stm32g0/power.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/soc/arm/st_stm32/stm32g0/power.c b/soc/arm/st_stm32/stm32g0/power.c index 3039bf663f8..f452e24f257 100644 --- a/soc/arm/st_stm32/stm32g0/power.c +++ b/soc/arm/st_stm32/stm32g0/power.c @@ -20,7 +20,7 @@ LOG_MODULE_DECLARE(soc, CONFIG_SOC_LOG_LEVEL); /* Invoke Low Power/System Off specific Tasks */ -void pm_power_state_set(struct pm_state_info info) +__weak void pm_power_state_set(struct pm_state_info info) { if (info.state != PM_STATE_SUSPEND_TO_IDLE) { LOG_DBG("Unsupported power state %u", info.state); @@ -50,7 +50,7 @@ void pm_power_state_set(struct pm_state_info info) } /* Handle SOC specific activity after Low Power Mode Exit */ -void pm_power_state_exit_post_ops(struct pm_state_info info) +__weak void pm_power_state_exit_post_ops(struct pm_state_info info) { if (info.state != PM_STATE_SUSPEND_TO_IDLE) { LOG_DBG("Unsupported power substate %u", info.state);