kinetis/rtc: Enable global lock for all

g_rtc_lock is used by the up_rtc_settime, a base RTC function.
Therefore, it should be available even for this procedure, not just when
CONFIG_RTC_HIRES.

Signed-off-by: Jiri Vlasak <jvlasak@elektroline.cz>
This commit is contained in:
Jiri Vlasak 2026-08-05 08:45:51 +02:00 • committed by Xiang Xiao
parent 804249a0b2
commit 25eae573e5

View file

@ -63,9 +63,7 @@
* Private Data
****************************************************************************/
#ifdef CONFIG_RTC_HIRES
static spinlock_t g_rtc_lock = SP_UNLOCKED;
#endif
#ifdef CONFIG_RTC_ALARM
static alarmcb_t g_alarmcb;