drivers: counter: nrfx_rtc: Convert driver to new DT_INST macros
Convert to using DT_LABEL(DT_INST()) to get label of the nordic,nrf-clock device. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
95baa51de8
commit
d798923c94
|
@ -532,7 +532,7 @@ static int init_rtc(struct device *dev, u32_t prescaler)
|
|||
NRF_RTC_Type *rtc = nrfx_config->rtc;
|
||||
int err;
|
||||
|
||||
clock = device_get_binding(DT_INST_0_NORDIC_NRF_CLOCK_LABEL);
|
||||
clock = device_get_binding(DT_LABEL(DT_INST(0, nordic_nrf_clock)));
|
||||
if (!clock) {
|
||||
return -ENODEV;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue