Skip to content

Commit d7eab21

Browse files
oknshnkartben
authored andcommitted
drivers: counter: counter_max32:_rtc: Update api_start
This commit removes redundant initialization. The following PR addresses the issue caused by the offset 5a2055 Signed-off-by: Okan Sahin <Okan.Sahin@analog.com>
1 parent 9bcc89d commit d7eab21

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/counter/counter_max32_rtc.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,6 @@ struct max32_rtc_config {
3838

3939
static int api_start(const struct device *dev)
4040
{
41-
/* Ensure that both sec and subsec are reset to 0 */
42-
while (MXC_RTC_Init(0, 0) == E_BUSY) {
43-
;
44-
}
45-
4641
while (MXC_RTC_Start() == E_BUSY) {
4742
;
4843
}

0 commit comments

Comments
 (0)