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>
This commit is contained in:
Kumar Gala 2019-02-09 17:10:42 -06:00 committed by Kumar Gala
commit d6a19afb29

View file

@ -252,7 +252,8 @@ static struct mcux_rtc_config mcux_rtc_config_0 = {
.irq_config_func = mcux_rtc_irq_config_0, .irq_config_func = mcux_rtc_irq_config_0,
.info = { .info = {
.max_top_value = UINT32_MAX, .max_top_value = UINT32_MAX,
.freq = RTC_0_CLOCK_FREQUENCY / RTC_0_PRESCALER, .freq = DT_NXP_KINETIS_RTC_0_CLOCK_FREQUENCY /
DT_NXP_KINETIS_RTC_0_PRESCALER,
.count_up = true, .count_up = true,
.channels = 1, .channels = 1,
}, },