drivers: timer: nrf_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
d798923c94
commit
c835676822
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ int z_clock_driver_init(struct device *device)
|
||||||
|
|
||||||
ARG_UNUSED(device);
|
ARG_UNUSED(device);
|
||||||
|
|
||||||
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) {
|
if (!clock) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue