Skip to content

Commit

Permalink
soc: stm32g0: pm_power_ functions should be __weak
Browse files Browse the repository at this point in the history
In commit "pm: Fix weak linkage symbols" (PR zephyrproject-rtos#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]>
  • Loading branch information
erwango authored and nashif committed Sep 8, 2021
1 parent 0d763e0 commit 31b7483
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions soc/arm/st_stm32/stm32g0/power.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 31b7483

Please sign in to comment.