From cc9afc8c4eb43038cd7239674ade2688a16c57e2 Mon Sep 17 00:00:00 2001 From: Rafal Dyla Date: Wed, 22 Oct 2025 20:13:39 +0200 Subject: [PATCH] [nrf noup] drivers: timer: grtc fix Fix for GRTC Signed-off-by: Rafal Dyla --- drivers/timer/nrf_grtc_timer.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/timer/nrf_grtc_timer.c b/drivers/timer/nrf_grtc_timer.c index 4e122363508..d8584b0d7fa 100644 --- a/drivers/timer/nrf_grtc_timer.c +++ b/drivers/timer/nrf_grtc_timer.c @@ -88,9 +88,7 @@ static inline uint64_t counter_sub(uint64_t a, uint64_t b) static inline uint64_t counter(void) { - uint64_t now; - nrfx_grtc_syscounter_get(&now); - return now; + return nrfx_grtc_syscounter_get(); } static inline int get_comparator(uint32_t chan, uint64_t *cc)