bluetooth: Convert to new DT_INST macros

Convert older DT_INST_ macro use the new include/devicetree.h
DT_INST macro APIs.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2020-03-27 05:37:40 -05:00 committed by Kumar Gala
commit 3a59f87ba9
3 changed files with 3 additions and 3 deletions

View file

@ -5378,7 +5378,7 @@ static void k32src_wait(void)
done = true;
struct device *clock = device_get_binding(
DT_INST_0_NORDIC_NRF_CLOCK_LABEL);
DT_LABEL(DT_INST(0, nordic_nrf_clock)));
LL_ASSERT(clock);

View file

@ -125,7 +125,7 @@ int ll_init(struct k_sem *sem_rx)
sem_recv = sem_rx;
clk = device_get_binding(DT_INST_0_NORDIC_NRF_CLOCK_LABEL);
clk = device_get_binding(DT_LABEL(DT_INST(0, nordic_nrf_clock)));
if (!clk) {
return -ENODEV;
}

View file

@ -28,7 +28,7 @@ int lll_clock_init(void)
{
int err;
dev = device_get_binding(DT_INST_0_NORDIC_NRF_CLOCK_LABEL);
dev = device_get_binding(DT_LABEL(DT_INST(0, nordic_nrf_clock)));
if (!dev) {
return -ENODEV;
}