drivers: timer: sam0_rtc_timer: Fix incorrect DT_INST conversion

clock-generator is a normal property.  To access it we should use
DT_INST_PROP(0, clock_generator) and not DT_INST_CLOCKS_CELL().

Fixes: #24399

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2020-04-15 17:04:03 -05:00 committed by Carles Cufí
parent d6f5f51f37
commit 2cd4681bd5
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ int z_clock_driver_init(struct device *device)
/* Set up bus clock and GCLK generator. */
PM->APBAMASK.reg |= PM_APBAMASK_RTC;
GCLK->CLKCTRL.reg = GCLK_CLKCTRL_ID(RTC_GCLK_ID) | GCLK_CLKCTRL_CLKEN
| GCLK_GEN(DT_INST_CLOCKS_CELL(0, generator));
| GCLK_GEN(DT_INST_PROP(0, clock_generator));
/* Synchronize GCLK. */
while (GCLK->STATUS.bit.SYNCBUSY) {