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:
Kumar Gala 2020-04-14 06:45:35 -05:00 committed by Kumar Gala
parent 95baa51de8
commit d798923c94

View file

@ -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;
}