Skip to content

Commit e541666

Browse files
gautierg-stcarlescufi
authored andcommitted
drivers: timer: stm32: lptim: remove init to 0 of static
Remove initialization of static variable to 0 to prevent resetting the value when reinitializing the driver after resume from standby. This has no impact since static variables are initialized to 0 by default. Signed-off-by: Guillaume Gautier <[email protected]>
1 parent 09fbd4c commit e541666

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/timer/stm32_lptim_timer.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,8 +448,6 @@ static int sys_clock_driver_init(void)
448448
stm32_lptim_wait_ready();
449449
LL_LPTIM_ClearFlag_ARROK(LPTIM);
450450

451-
accumulated_lptim_cnt = 0;
452-
453451
#if !defined(CONFIG_SOC_SERIES_STM32U5X) && \
454452
!defined(CONFIG_SOC_SERIES_STM32WBAX)
455453
/* Enable the LPTIM counter */

0 commit comments

Comments
 (0)