Skip to content

Commit d6a19af

Browse files
committed
drivers: counter: mcux: Fix sanitycheck test build issue
The generated defines RTC_0_CLOCK_FREQUENCY and RTC_0_PRESCALER are maked as deprecated by dts generation. This causes a build warning and an error during sanitycheck runs. Replace with the DT_ prefixed versions that are not deprecated. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
1 parent 436f112 commit d6a19af

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/counter/counter_mcux_rtc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,8 @@ static struct mcux_rtc_config mcux_rtc_config_0 = {
252252
.irq_config_func = mcux_rtc_irq_config_0,
253253
.info = {
254254
.max_top_value = UINT32_MAX,
255-
.freq = RTC_0_CLOCK_FREQUENCY / RTC_0_PRESCALER,
255+
.freq = DT_NXP_KINETIS_RTC_0_CLOCK_FREQUENCY /
256+
DT_NXP_KINETIS_RTC_0_PRESCALER,
256257
.count_up = true,
257258
.channels = 1,
258259
},

0 commit comments

Comments
 (0)